@echo off

set OLDDIR=%CD%

cd /d %0\..


reg add HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Settings /f
reg add HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Settings /f /v SuppressNewHWUI /t REG_DWORD /d 1

wscript //Nologo VAIOmodinst.vbe /o \VAIO\XP_Downgrade\Common\Setup\NoHW.txt

chdir /d %OLDDIR%

shutdown -r -t 0 -c "Install Drivers and Utilities"
