- 积分
- 2
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2014-1-7
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 听众
- 收听
网络小学徒
|
发表于 2007-6-11 10:40:03
|
显示全部楼层
你挺幸运地,看我怎么做的
只要在创建账户的时候加这么一个命令
------------------------------------------------------
--------------------------------------------------------
:adduser
echo 开始创建 __vmware_user__ 账户 ...
NET ACCOUNTS /MINPWLEN:0 ----------------加这个命令
net user __vmware_user__ /add /comment:"VMware User" /fullname:"__vmware_user__"
------------------------------------------------------
--------------------------------------------------------
并且把下面几个命令结尾的 > nul 删掉
NET ACCOUNTS /MINPWLEN:0
这个命令的作用是把创建用户所需要的最低密码长度设置为0
。你也可以复制下面的脚本替换掉你现在的
-----------------------------------------------------
--------------------------------------------------------
@shift 1
@echo off
CLS
color 0a
echo.
SET /P ST= 安装服务输入Y,启动软件输入N:
echo.
if /I "%ST%"=="Y" goto ST
if /I "%ST%"=="N" goto GD
:GD
START vmware.exe
CALL server.cmd
GOTO END
:ST
:regdll
echo 正在注册所需的DLL文件....
regsvr32 /s "%cd%/vmappcfg.dll"
regsvr32 /s "%cd%/vmappsdk.dll"
regsvr32 /s "%cd%/vmdbCOM.dll"
regsvr32 /s "%cd%/vmhwcfg.dll"
:addreg
echo 正在添加注册表项目...
set regadd=reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup
%regadd%" /v "SourcePath" /d "%systemroot%\inf" /f
set regadd=reg add "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.
%regadd%" /v Core /d "VMware Workstation" /f
set regadd=%regadd%\VMware Workstation
%regadd%" /v "InstallPath" /d "%cd%" /f
set regadd=%regadd%\License.ws.6.0.200907
%regadd%" /v "StartFields" /d "Cpt, ProductID, LicenseVersion, LicenseType, Epoch" /f
%regadd%" /v "Cpt" /d "COPYRIGHT (c) VMware, Inc. 1999-2007" /f
%regadd%" /v "ProductID" /d "VMware Workstation for Win32" /f
%regadd%" /v "LicenseVersion" /d "6.0" /f
%regadd%" /v "LicenseType" /d "User" /f
%regadd%" /v "Epoch" /d "2009-7-1" /f
%regadd%" /v "Hash" /d "6b3d34d9-b34f898e-2600b82e-9f65a272-44f2afe8" /f
%regadd%" /v "Serial" /d "ERHUD-2RGAC-X01FZ-4MRN2" /f
%regadd%" /v "Name" /d "vmware.cn" /f
%regadd%" /v "CompanyName" /d "中国虚拟化先锋" /f
@reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom" /v "Autorun" /d "0" /f
:adduser
echo 开始创建 __vmware_user__ 账户 ...
NET ACCOUNTS /MINPWLEN:0
net user __vmware_user__ /add /comment:"VMware User" /fullname:"__vmware_user__"
net localgroup __vmware__ /add /comment:"VMware User Group"
net localgroup users __vmware_user__ /del
net localgroup __vmware__ __vmware_user__ /add
:Start VM basic service
echo 装载虚拟机需要基本服务 ...
sc create vmx86 type= kernel start= auto binpath= "%cd%\drivers\vmx86.sys" displayname= "VMware Virtualization Driver"
net start vmx86
sc create VMnetuserif type= kernel start= auto binpath= "%cd%\drivers\vmnetuserif.sys" displayname= "VMware Network Application Interface"
net start VMnetuserif
START vmware.exe
CALL server.cmd
:END
---------------------------------------------------------
--------------------------------------------------------- |
6#
2007-6-11 10:40:03
回复(0)
收起回复
|