|
原帖由 fujianabc 于 2010-5-3 10:56 发表
看vhd,没什么问题,sysprep命令也没什么问题。
局域网速度也不慢阿,你5点几GB数据,每秒10兆多,几分钟也就传完了。
如果是千兆网络,一两分钟就能传完1个vhd
这回真的郁闷了。。。。。。。。。。怎么连SYSPREP的也不行呀?
难道是我的菜单加的有问题?
能看看吗?
这是截图:
下面是生成BCD的CMD:
@ECHO OFF
@CD /D "%~DP0"
IF NOT EXIST "C:\BOOTMGR" @ATTRIB -R -A -S -H "%~DP0BOOTMGR"
IF NOT EXIST "C:\BOOTMGR" @COPY /Y /V "%~DP0BOOTMGR" "C:\" >NUL
IF EXIST @ATTRIB +R +A +S +H "C:\BOOTMGR"
IF NOT EXIST "C:\BOOT\" @MD "C:\BOOT\"
IF EXIST "C:\BOOT\" @ATTRIB +R +A +S +H "C:\BOOT"
IF EXIST "C:\BOOT\BCD" @COPY /Y /V "C:\BOOT\BCD" "C:\BOOT\BCD_BAK" >NUL
IF EXIST "C:\BOOT\BCD" @DEL /F /A /Q "\\?\C:\BOOT\BCD" >NUL
BOOTSECT.EXE /NT60 "C:" /FORCE /MBR
BCDEDIT /CREATESTORE "C:\BOOT\BCD"
BCDEDIT /STORE "C:\BOOT\BCD" /CREATE {BOOTMGR} /D "Windows Boot Manager"
BCDEDIT /STORE "C:\BOOT\BCD" /SET {BOOTMGR} LOCALE "zh-CN" >NUL
BCDEDIT /STORE "C:\BOOT\BCD" /SET {BOOTMGR} INHERIT {BOOTLOADERSETTINGS} >NUL
BCDEDIT /STORE "C:\BOOT\BCD" /CREATE {NTLDR} /D "Microsoft Windows XP Professional"
BCDEDIT /STORE "C:\BOOT\BCD" /SET {NTLDR} DEVICE PARTITION="C:"
BCDEDIT /STORE "C:\BOOT\BCD" /SET {NTLDR} PATH "\NTLDR"
BCDEDIT /STORE "C:\BOOT\BCD" /DISPLAYORDER {NTLDR} /ADDLAST
BCDEDIT /STORE "C:\BOOT\BCD" /DEFAULT {NTLDR}
BCDEDIT /STORE "C:\BOOT\BCD" /SET {BOOTMGR} TIMEOUT "9"
PAUSE
SET VID=
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /CREATE /D "%~DP0WIN7.VHD" /APPLICATION OSLOADER >"%TEMP%\VID.TXT"
FOR,/F,"TOKENS=2 DELIMS={",%%I,IN (%TEMP%\VID.TXT) DO (SET VIDA=%%I)
FOR,/F,"TOKENS=1 DELIMS=}",%%I,IN ("%VIDA%") DO (SET VID={%%I})
ECHO %VID%>"%TEMP%\VID.TXT"
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /SET %VID% DEVICE VHD="[%~D0]%~P0WIN7.VHD" >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /SET %VID% PATH "\WINDOWS\SYSTEM32\WINLOAD.EXE" >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /SET %VID% LOCALE "zh-CN" >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /SET %VID% INHERIT {BOOTLOADERSETTINGS} >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /SET %VID% SYSTEMROOT "\WINDOWS" >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /SET %VID% OSDEVICE VHD="[%~D0]%~P0WIN7.VHD" >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /SET %VID% DETECTHAL ON >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /DISPLAYORDER %VID% /ADDLAST >NUL
BCDEDIT.EXE /STORE "C:\BOOT\BCD" /TIMEOUT 9 >NUL
@DEL /F /A /Q "%TEMP%\VID.TXT" >NUL
PAUSE
在实机上面用出现的错误还是28#楼的截图,我的步骤如下:
1.用WIN7X86U版生成VHD,然后挂本机,直接进去
2.进去后改用administrator用户,然后运行SYSPREP,其它的什么都没动,直接关机
3.进本机正常的系统,复制SYSPREP后的VHD文件放到别的机子上面
4.用上面的CMD修改引导为NT6,并生成BCD文件和复制BOOTMGR到“激活的主分区”上面
5.重启动已经出现菜单,说明菜单显示部分应该没问题。。。。。
6.选择菜单中的VHD启动,这里出错了。。。。。。出错截图在28#楼。。。。。。。 |
|