From a68d4a7a5ab95ef68c13ca040a21469cfed42b19 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 3 Sep 2026 12:54:27 +0200 Subject: [PATCH] Update win7x64-ultimate.cmd --- assets/win7x64-ultimate.cmd | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/assets/win7x64-ultimate.cmd b/assets/win7x64-ultimate.cmd index a5d6f81a..460e0347 100644 --- a/assets/win7x64-ultimate.cmd +++ b/assets/win7x64-ultimate.cmd @@ -8,8 +8,18 @@ set "SETUP_COMPLETE=%SCRIPT_DIR%setup.complete" if "%~1"=="" goto setup if /i "%~1"=="setup" goto setup if /i "%~1"=="logon" goto logon +if /i "%~1"=="specialize" goto specialize exit /b 2 +:specialize + +rem Install the VMWare display driver before Windows Setup's final reboot. +certutil.exe -addstore -f Root "%SystemRoot%\Drivers\vmsvga\vm3d.cer" >nul 2>&1 +certutil.exe -addstore -f TrustedPublisher "%SystemRoot%\Drivers\vmsvga\vm3d.cer" >nul 2>&1 +pnputil.exe -i -a "%SystemRoot%\Drivers\vmsvga\vm3d.inf" + +exit /b 0 + :setup if exist "%SETUP_COMPLETE%" exit /b 0 @@ -38,6 +48,9 @@ reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard rem Disable Network Discovery popup. reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\NewNetworks" /v NetworkList /t REG_MULTI_SZ /d "" /f +rem Disable AutoPlay for all drives. +reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /t REG_DWORD /d 255 /f + rem Disable first-run experience in Edge. reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f @@ -68,11 +81,6 @@ rem Install the product key without activating Windows immediately. cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX" rem END PRODUCT_KEY -rem Install the VMWare display driver last to avoid disrupting earlier setup work. -certutil.exe -addstore -f Root "%SystemRoot%\Drivers\vmsvga\vm3d.cer" >nul 2>&1 -certutil.exe -addstore -f TrustedPublisher "%SystemRoot%\Drivers\vmsvga\vm3d.cer" >nul 2>&1 -pnputil.exe -i -a "%SystemRoot%\Drivers\vmsvga\vm3d.inf" - type nul > "%SETUP_COMPLETE%" exit /b 0