w10install/scripts/install-logonscript.cmd
Michael H.G. Schmidt 388733dc91 move to LTSC
2023-12-26 22:43:59 +01:00

16 lines
366 B
Batchfile

@echo off
set TOOLS=%SystemDrive%\tools
set TARGET="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Startup"
echo ####### %0 #######
echo cleanup ...
del /F /Q %TARGET%\logon* 1>nul 2>nul
rd /S /Q %PUBLIC%\Desktop\Startup 1>nul 2>nul
echo creating link for logon script ...
mklink %TARGET%\logon.vbs %TOOLS%\logon.vbs
echo ####### %0 #######