使用VMware 时有些服务可能不是每次都用的到,那怎么才能把它关闭呢?我在网上找到了下面的代码,就可实现了!
@echo off&setlocal enabledelayedexpansion
sc query VMAuthdService |findstr RUNNING>nul&&(
sc stop VMAuthdService
sc config   VMAuthdService start= DISABLED
sc stop vmount2
sc config   vmount2 start= DISABLED
sc stop VMnetDHCP
sc config   VMnetDHCP start= DISABLED
sc stop "VMware NAT Service"
sc config   "VMware NAT Service" start= DISABLED
)||(
sc config   VMAuthdService start= AUTO
sc start VMAuthdService
sc config   vmount2 start= AUTO
sc start vmount2
sc config   VMnetDHCP start= AUTO
sc start VMnetDHCP
sc config   "VMware NAT Service" start= AUTO
sc start "VMware NAT Service"
start vmware.exe
)
具体操作是,新建一个文本文档,把上面的代码全部复制过道新建的文档里保存为XXXXXX.bat的格式,在每次使用VMware Workstation时先运行XXXXXX.bat这个批处理文件即可,在到你的任务管理器里看下是不是少了几个VMware自动启动的服务了!