如何徹底卸載虛擬機

                              如何徹底卸載虛擬機把下面的代碼粘貼到記事本里然後點文件-另存爲 文件名填"卸載.bat"文件類型選“所有文件”到了顯示“卸載完成……”的時候就OK了 代碼 cls @echo off CLS color 0a echo 取消DLL文件的註冊... regsvr32 /u /s "%cd%/vmappcfg.dll" regsvr32 /u /s "%cd%/vmappsdk.dll" regsvr32 /u /s "%cd%/vmdbCOM.dll" regsvr32 /u /s "%cd%/vmhwcfg.dll" regsvr32 /u /s "%cd%\V2V\IntraProcessLogging.dll" regsvr32 /u /s "%cd%\V2V\reconfig.dll" regsvr32 /u /s "%cd%\V2V\vhdcvtcom.dll" regsvr32 /u /s "%cd%\V2V\vmc2vmx.dll" regsvr32 /u /s "%cd%\V2V\vpcCvt.dll" echo 正在刪除虛擬網卡請稍後…… :delete VM Network start /wait vnetlib -- remove adapter vmnet1 start /wait vnetlib -- remove adapter vmnet8 start /wait vnetlib -- remove dhcp vmnet1 start /wait vnetlib -- remove dhcp vmnet8 start /wait vnetlib -- remove nat vmnet8 :delservice echo 正在刪除服務... call :刪除服務 vmnetbridge call :刪除服務 VMAuthdService call :刪除服務 vmx86 call :刪除服務 VMnetAdapter call :刪除服務 "VMware NAT Service" call :刪除服務 "VMnetDHCP" call :刪除服務 VMnetuserif call :刪除服務 hcmon call :刪除服務 Vmparport call :刪除服務 vstor2-ws60 call :刪除服務 vstor2 call :刪除服務 vmkbd "%cd%\VMMount\vmount2.exe" /Unregserver netcfg -u vmware_bridge echo. :delfile echo 刪除安裝的文件.... call :刪除文件 %systemroot%\inf\vmnet.sys call :刪除文件 %systemroot%\inf\vmnetBridge.dll call :刪除文件 %systemroot%\inf\netbridge.inf call :刪除文件 %systemroot%\inf\vmnetBridge.sys call :刪除文件 %systemroot%\inf\vmusb.cat call :刪除文件 %systemroot%\inf\vmusb.inf call :刪除文件 %systemroot%\inf\vmusb.sys call :刪除文件 %systemroot%\inf\netadapter.inf call :刪除文件 %systemroot%\inf\vmnetAdapter.sys call :刪除文件 %systemroot%\inf\vnetinst.dll call :刪除文件 %systemroot%\lastgood\system32\drivers\vmnetadapter.sys call :刪除文件 %systemroot%\lastgood\system32\drivers\vmnet.sys call :刪除文件 %systemroot%\lastgood\system32\drivers\vmnetbridge.sys call :刪除文件 %systemroot%\system32\drivers\vmnetadapter.sys call :刪除文件 %systemroot%\system32\drivers\vmnet.sys call :刪除文件 %systemroot%\system32\drivers\vmnetbridge.sys call :刪除文件 %systemroot%\system32\drivers\vmusb.sys call :刪除文件 %systemroot%\system32\drivers\hcmon.sys call :刪除文件 %systemroot%\system32\drivers\vmnetuserif.sys call :刪除文件 %systemroot%\system32\drivers\vmparport.sys call :刪除文件 %systemroot%\system32\drivers\vmx86.sys call :刪除文件 %systemroot%\system32\NETCFG.EXE call :刪除文件 %systemroot%\system32\choice.exe call :刪除文件 %systemroot%\system32\devcon.exe ::以下兩句刪除用戶的配置文件(即虛擬機文件)默認不刪除,需要刪除請將下面兩句前面的::去掉 ::rd /s /q %APPDATA%\vmware ::rd /s /q "\Virtual Machines" echo. :delreg echo 刪除註冊表.... reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc." /f :deluser echo 刪除用戶__vmware_user__... net user __vmware_user__ /delete net localgroup __vmware__ /delete pause>nul|echo 卸載完成...... goto :eof :刪除文件 echo 正在刪除文件 %* del /f /q "%*" >nul 2>nul goto :eof :刪除服務 echo 正在刪除服務 %* net stop %* 2>nul sc delete %* goto :eof vae la

如果對您有幫助請記得微信添加公衆號“紅人網絡”並關注

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章