...
It requires devcon.exe in order to work. Copy/paste into a .cmd file.
| Code Block | ||
|---|---|---|
| ||
@echo off
@title Removing VM Guest Services Video Driver
echo.
echo Removing VM Video Device 1 ...
c:\tools\devcon.exe remove "VMBUS\{5620E0C7-8062-4DCE-AEB7-520C7EF76171}"
echo.
echo Removing VM Video Device 2 ...
c:\tools\devcon.exe remove "VMBUS\{da0a7802-e377-4aac-8e77-0558eb1073f8}"
echo.
echo Removing VM Video Driver SYS File ...
IF EXIST %windir%\system32\DRIVERS\VMBusVideoM.sys DEL /F /Q %windir%\system32\DRIVERS\VMBusVideoM.sys
echo.
echo Adding RunOnce Registry Entry to Remove Video Driver DLL File ...
IF EXIST %windir%\system32\VMBusVideoD.dll REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce /v Del_VM_Bus_Video /t REG_SZ /d "cmd.exe /c DEL /F /Q %windir%\system32\VMBusVideoD.dll" /f
echo.
echo Removing VM Video Driver INF File ...
SET COUNT=0
:CHECK
IF EXIST %windir%\inf\oem%COUNT%.inf (
findstr VMBusVideo %windir%\inf\oem%COUNT%.inf
IF NOT ERRORLEVEL=1 (
DEL /F /Q %windir%\inf\oem%COUNT%.inf
echo Deleted oem%COUNT%.inf ...
GOTO :END
)
)
SET /A COUNT+=1
IF %COUNT% LSS 20 GOTO :CHECK
:END
echo.
echo Restarting ...
shutdown /r /f /t 0
exit |
...