批处理添加启动项VHD启动项 bcdedit /create /d "Win7x64 VHD" /application osloader >%USERPROFILE%\AppD

热门搜索:
当前位置: >
用命令操作灌装VHD系统及引导启动
来源:&&&&浏览量:
作者:低卍卍调
[初步尝试用命令行的方式建立并且完成VHD系统的灌装 测试环境 7000]
关于VHD技术 前面已经有好多高人做了说明 在此笔者不再赘述 就把如何运用cmd创建vhd以及系统的灌装和计算机的vhd引导做一下简述&&仓促 不免有误 欢迎拍砖 欢迎围观
Microsoft Windows [Version 6.1.7000]
Copyright (c) 2006 Microsoft Corporation.&&All rights reserved.
C:\Users\Administrator&diskpart
Microsoft DiskPart version 6.1.7000
Copyright (C)
Microsoft Corporation.
On computer: HACKER-PC
DISKPART& create vdisk file=i:\vhd7.vhd type=fixed maximum=15000
DiskPart successfully created the virtual disk file.
(在物理机的i分区创建大小为15000M的固定vhd磁盘 并将vhd文件命名为vhd7)
DISKPART& select vdisk file=i:\vhd7.vhd
DiskPart successfully opened the virtual disk file.
(选择该vhd7磁盘)
DISKPART& attach vdisk
DiskPart successfully attached the virtual disk file.
(挂载vhd磁盘)
DISKPART& create partition primary
DiskPart succeeded in creating the specified partition.
(将该磁盘设置为主分区)
DISKPART& format fs=ntfs quick
100 percent completed
DiskPart successfully formatted the volume.
(将该磁盘快速分区为ntfs格式)
DISKPART& assign letter=v
DiskPart successfully assigned the drive letter or mount point.
(设置vhd7的分区盘符为v)
DISKPART& exit
Leaving DiskPart...
(退出diskpart)
C:\&imagex /apply e:\sources\install.wim 4 v:
(释放windows 7 sources目录下的install.wim到vhd磁盘 4是旗舰版的代号 v是刚才创建的vhd盘符)
ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
[ 100% ] Applying progress
Successfully applied image.
Total elapsed time: 7 min 28 sec
(释放完成 耗时7m28s)
创建vhd多重引导
C:\&bcdedit /copy {current} /d &vhd7&
The entry was successfully copied to {e8e25dc3-262d-11de-ae9c-3e}.
C:\&bcdedit /set {e8e25dc3-262d-11de-ae9c-3e} device vhd=[i:]\vhd7.vhd
The operation completed successfully.
C:\&bcdedit /set {e8e25dc3-262d-11de-ae9c-3e} osdevice vhd=[i:]\vhd7.vhd
The operation completed successfully.
C:\&bcdedit /set {e8e25dc3-262d-11de-ae9c-3e} detecthal on
The operation completed successfully.
(e8e25dc3-262d-11de-ae9c-3e代码有所不同 输入bcdedit /copy {current} /d &vhd7&
命令后会出现 复制替换即可)
***(其中的i: 应特别注意 是物理机存放vhd文件的磁盘分区盘符 而不是vhd的分区盘符)***
便于理解上截图
C:\&bcdedit
(检查启动项)
Windows Boot Manager
--------------------
identifier& && && && &&&{bootmgr}
device& && && && && && &partition=C:
description& && && && & Windows Boot Manager
locale& && && && && && &en-US
inherit& && && && && &&&{globalsettings}
default& && && && && &&&{current}
resumeobject& && && && &{e8e25dbf-262d-11de-ae9c-3e}
displayorder& && && && &{current}
& && && && && && && && &{e8e25dc3-262d-11de-ae9c-3e}
toolsdisplayorder& && & {memdiag}
timeout& && && && && &&&3
Windows Boot Loader
-------------------
identifier& && && && &&&{current}
device& && && && && && &partition=C:
path& && && && && && &&&\Windows\system32\winload.exe
description& && && && & Windows 7
locale& && && && && && &en-US
loadoptions& && && && & DDISABLE_INTEGRITY_CHECKS
inherit& && && && && &&&{bootloadersettings}
recoverysequence& && &&&{e8e25dc1-262d-11de-ae9c-3e}
truncatememory& && && & 0x
recoveryenabled& && && &Yes
osdevice& && && && && & partition=C:
systemroot& && && && &&&\Windows
resumeobject& && && && &{e8e25dbf-262d-11de-ae9c-3e}
nx& && && && && && && & OptIn
numproc& && && && && &&&2
detecthal& && && && && &No
usefirmwarepcisettings&&No
Windows Boot Loader
-------------------
identifier& && && && &&&{e8e25dc3-262d-11de-ae9c-3e}
device& && && && && && &vhd=[I:]\vhd7.vhd
path& && && && && && &&&\Windows\system32\winload.exe
description& && && && & vhd7
locale& && && && && && &en-US
loadoptions& && && && & DDISABLE_INTEGRITY_CHECKS
inherit& && && && && &&&{bootloadersettings}
recoverysequence& && &&&{e8e25dc1-262d-11de-ae9c-3e}
truncatememory& && && & 0x
recoveryenabled& && && &Yes
osdevice& && && && && & vhd=[I:]\vhd7.VHD
systemroot& && && && &&&\Windows
resumeobject& && && && &{e8e25dbf-262d-11de-ae9c-3e}
nx& && && && && && && & OptIn
numproc& && && && && &&&2
detecthal& && && && && &Yes
usefirmwarepcisettings&&No
Vista\Win7┆旗舰㈢(高级系统群)
Vista\Win7┆旗舰㈤(高级系统群)
《用命令操作灌装VHD系统及引导启动》相关内容
评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
Win7教程排行
最新系统下载
Win7教程推荐
win7系统推荐图解vhd创建_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
图解vhd创建
上传于||文档简介
&&图​解​v​h​d​创​建
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩10页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢503: Service Unavailable
503: Service Unavailable
访问太频繁了,服务器要炸。

我要回帖

更多关于 批处理添加启动项 的文章

 

随机推荐