net session >NUL 2>&1 if %errorlevel% neq 0 ( echo Administrator privileges required! exit /b )
echo. set KeyName="HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Player" :: delims is a TAB followed by a space for /F "tokens=2* delims= " %%A in ('REG QUERY %KeyName% /v InstallPath') doset InstallPath=%%B echo VMware is installed at: %InstallPath% for /F "tokens=2* delims= " %%A in ('REG QUERY %KeyName% /v ProductVersion') doset ProductVersion=%%B echo VMware product version: %ProductVersion%
在line 24 添加 set InstallPath=VMware安装路径
1
set InstallPath=C:\Program Files (x86)\VMware\VMware Workstation\
在line 47、line 51改为调用python脚本破解:
1 2
python3 unlocker.py python3 gettools.py
在line 29-32line中的VMware服务名字是错误的,需要修改正确服务名并加上双引号。
1 2 3 4 5
net stop "VMwareHostd" > NUL 2>&1 net stop "VMAuthdService" > NUL 2>&1 net stop "VMnetDHCP" > NUL 2>&1 net stop "VMUSBArbService" > NUL 2>&1 net stop "VMware NAT Service" > NUL 2>&1
修改line 57-line 60:
1 2 3 4 5
net start "VMware NAT Service" > NUL 2>&1 net start "VMnetDHCP" > NUL 2>&1 net start "VMAuthdService" > NUL 2>&1 net start "VMUSBArbService" > NUL 2>&1 net start "VMwareHostd" > NUL 2>&1
@echo off setlocal ENABLEEXTENSIONS echo. echo Unlocker 3.0.2for VMware Workstation echo ===================================== echo (c) Dave Parsons 2011-18 echo. echoSet encoding parameters... REM chcp 850
REM net session >NUL 2>&1 REM if %errorlevel% neq 0 ( REM echo Administrator privileges required! REM pause REM exit /b REM )
echo. set InstallPath=C:\Program Files (x86)\VMware\VMware Workstation REM set KeyName="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\VMware, Inc.\VMware Workstation" REM :: delims is a TAB followed by a space REM for /F "tokens=2* delims= " %%A in ("REG.exe QUERY %KeyName% /v InstallPath") do set InstallPath=%%B REM echo VMware is installed at: %InstallPath% REM for /F "tokens=2* delims= " %%A in ("REG.ex QUERY %KeyName% /v ProductVersion") do set ProductVersion=%%B REM echo VMware product version: %ProductVersion%
pushd %~dp0
echo. echo Stopping VMware services... net stop "VMwareHostd" > NUL2>&1 net stop "VMAuthdService" > NUL2>&1 net stop "VMnetDHCP" > NUL2>&1 net stop "VMUSBArbService" > NUL2>&1 net stop "VMware NAT Service" > NUL2>&1 taskkill /F /IM vmware-tray.exe > NUL2>&1