All pastes #471137 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-04 19:11 UTC
rendered paste body
@Echo off

if "%target_root%" == "" goto error
if not exist %target_root% goto error

goto Win2000

:error
Echo Target Root not set. Exiting...
pause
goto end

:Win2000
%SYSTEMDRIVE%
CD \PROGRAMS\FIXVMSCSI
@echo Copying vmscsi.inf to %target_root%\inf folder
copy vmscsi.inf %target_root%\inf
@echo Copying vmscsi.sys to %target_root%\system32\drivers
copy vmscsi.sys %target_root%\system32\drivers

@echo Loading Registry...
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
@echo Importing registry keys...
regedit /s vmscsi1.reg
regedit /s vmscsi2.reg
reg UNLOAD HKLM\SYSTEM_00
goto end

:end
@echo "Done...Please restart the VM with the Start->Shutdown and Reboot"
pause



VMSCSI1.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_104b&dev_1040]
"ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}"
"Service"="vmscsi"

VMSCSI2.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\vmscsi]
"Type"=dword:00000001
"Start"=dword:00000000
"ErrorControl"=dword:00000001
"Tag"=dword:00000021
"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,76,00,6d,00,73,00,63,00,73,00,69,\
  00,2e,00,73,00,79,00,73,00,00,00
"DisplayName"="vmscsi"
"Group"="SCSI Miniport"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\vmscsi\Parameters]

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\vmscsi\Parameters\Device]
"NumberofRequests"=dword:00000080

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\vmscsi\Parameters\PnpInterface]
"5"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\vmscsi\Security]
"Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,02,\
  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
  00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\
  05,12,00,00,00,65,74,2e,6e,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\
  20,00,00,00,20,02,00,00,65,74,00,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\
  00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\
  00,05,20,00,00,00,23,02,00,00,65,74,00,00,01,01,00,00,00,00,00,05,12,00,00,\
  00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\vmscsi\Enum]
"0"="PCI\\VEN_104B&DEV_1040&SUBSYS_1040104B&REV_01\\3&61aaa01&0&80"
"Count"=dword:00000001
"NextInstance"=dword:00000001