From d870df676e289caf80a42266e6b74706ea7adf95 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 3 Sep 2026 12:57:17 +0200 Subject: [PATCH] Update win7x86-ultimate.cmd --- assets/win7x86-ultimate.cmd | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/assets/win7x86-ultimate.cmd b/assets/win7x86-ultimate.cmd index 74bd7491..460e0347 100644 --- a/assets/win7x86-ultimate.cmd +++ b/assets/win7x86-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