|
楼主 |
发表于 2018-11-28 13:59:05
|
显示全部楼层
搜到hidevm.bat的内容,改了一下,还是不能装
@echo Off
setlocal EnableDelayedExpansion
echo VirtualBox Hider for SolidWorksecho by TeAM SolidSQUAD-SSQ
set VMNAME=%1
cd C:\Program Files\Oracle\VirtualBox
VBoxManage setextradata "win10x64" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "American Megatrends Inc"
VBoxManage setextradata "win10x64" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "2.1.0"
VBoxManage setextradata "win10x64" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "ASUSTek Computer"
call:gen_random_string 9
VBoxManage setextradata "win10x64" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "string:!rand!"
call:gen_random_string 20
VBoxManage setextradata "win10x64" "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "string:!rand!"
call:gen_random_string 8
VBoxManage setextradata "win10x64" "VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" "string:!rand!"
VBoxManage setextradata "win10x64" "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "SEAGATE ST3750525AS"
echo .echo Success!echo .pause
goto:eof
:usage
echo Usage: %0 VM-Name
echo This script shold be started from HOST machineecho where VM-name is a name of STOPPED VirtualBox virtual machine
echo Note: the PATH variable must contain path to VBoxManage.exe
echo like set PATH=C:\Program Files\Oracle\VirtualBox;%%PATH%%echo.pausegoto:eof
:gen_random_string
set lineup=0123456789ABCDEF
set RandomLength=%1
set count=0
set rand=:loop set /a count+=1 set /a _RND=%Random%*15/32768 set rand=!rand!!lineup:~%_RND%,1! if !count! lss %RandomLength% goto loop
:eof
PAUSE
|
|