@title Unattended installation of programs after recovery

@echo It is recommended to be logged as Administrator and have a non-empty password. If needed, please check if the Administrator account is enabled and have a password (right click on Administrator in "Local Users and Groups\Users" and in Properties, uncheck "Account is disabled" to enable the account and select "Set Password..." in the context menu of Administrator to set a password). If you are not currently logged as Administrator, please restart this script when you will be logged as Administrator.

@start /w lusrmgr.msc

@echo.

@pause

@echo.

@echo Please enable the current user to automatically logon at computer startup by selecting it in the list of users and unchecking "Users must enter a user name and password to use this computer"

@echo.

@start /w netplwiz.exe

@echo Installing components...

@pkgmgr /iu:TelnetClient 
@pkgmgr /iu:TelnetServer 

@set DVDROM=%CD%

@start /w robocopy0 "%DVDROM%\sources\$OEM$\$$"\ "%SYSTEMROOT%"\
@start /w robocopy0 "%DVDROM%\sources\$OEM$\$1"\ "%SYSTEMDRIVE%"\
@start /w robocopy0 "%DVDROM%\sources\$OEM$\$DOC"\ "%USERPROFILE%\.."\
@start /w robocopy0 "%DVDROM%\sources\$OEM$\$PROGS"\ "%PROGRAMFILES%"\

@start /w robocopy0 "%DVDROM%\AMD64\$OEM$\$$"\ "%SYSTEMROOT%"\
@start /w robocopy0 "%DVDROM%\AMD64\$OEM$\$1"\ "%SYSTEMDRIVE%"\
@start /w robocopy0 "%DVDROM%\AMD64\$OEM$\$DOC"\ "%USERPROFILE%\.."\
@start /w robocopy0 "%DVDROM%\AMD64\$OEM$\$PROGS"\ "%PROGRAMFILES%"\

@start /w %systemroot%\RunOnce\RunOnce.bat

@call WinVars.bat

@start /w /d "%STARTMENUSTARTUPROOT%" Logon1.bat

@exit
