HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Windows/OEM/SetupComplete.cmd
@ECHO OFF && SETLOCAL && SETLOCAL ENABLEDELAYEDEXPANSION && SETLOCAL ENABLEEXTENSIONS

TITLE SETUP COMPLETE

ECHO Begin execute SetupComplete.cmd >> %windir%\Panther\WaSetup.log

REM execute unattend script
cscript %SystemRoot%\OEM\Unattend.wsf //Job:setup //NoLogo //B /ConfigurationPass:oobeSystem >> %windir%\Panther\WaSetup.log

ECHO End execute SetupComplete.cmd >> %windir%\Panther\WaSetup.log

IF EXIST %SystemRoot%\OEM\SetupComplete2.cmd (
	ECHO Begin execute SetupComplete2.cmd >> %windir%\Panther\WaSetup.log
	CALL %SystemRoot%\OEM\SetupComplete2.cmd
    ECHO End execute SetupComplete2.cmd >> %windir%\Panther\WaSetup.log
)

IF EXIST "%SystemRoot%\OEM\ShutdownMachine.tag" (
    ECHO Shut down machine >> %windir%\Panther\WaSetup.log
    shutdown.exe /s /t 0 /f >> %windir%\Panther\WaSetup.log
)

IF EXIST "%SystemRoot%\OEM\RestartMachine.tag" (
    ECHO Restarting machine >> %windir%\Panther\WaSetup.log
    shutdown.exe /r /t 0 /f >> %windir%\Panther\WaSetup.log
)