cheng029 发表于 2012-7-13 13:17:47

用脚本在Hyper-V上自动创建虚拟机

Mount the network share where your WIM is located:
Type the following command and replace the relevant info:
net use y:\\server\share\Images /user:contoso\jose
(You should have access to the scratch dir on server via y:)


Apply Image

Images can be applied: via script / manually running commands


Applying image via script

Assuming you have the images network share mounted to y:, do the following:

cscript y:\SCRIPTS\applyImage.vbs y:\<wim> y:\SCRIPTS\diskpartCreate60.scr

Note: This will create a 60GB partition, format it, label it c:, then apply the wim.use diskpartCreate.scr to make the boot volume fill the full volume size.

Note: you must have your physical disk sized a little more that 60GB for the above to work.Suggested size:62GB

13432878738 发表于 2013-3-14 01:23:29

本帖最后由 wuyvzhang 于 2016-8-2 17:36 编辑 <br /><br />沙发!沙发!

www.138850.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投゛注任何游戏顶级信用゛提现即时到账SO.CC

q36988 发表于 2013-5-16 02:31:23

本帖最后由 wuyvzhang 于 2016-8-2 17:36 编辑 <br /><br />内练一口气,外练一口屁。

www.138157.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投=注任何游戏顶级信用=提现即时到账SO.CC

xuanhao 发表于 2013-5-18 08:56:30

本帖最后由 wuyvzhang 于 2016-8-2 17:36 编辑 <br /><br />啥时硬件也可以COPY就好了!

www.138361.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投1注任何游戏顶级信用1提现即时到账SO.CC

cqlinx 发表于 2013-5-20 13:41:08

本帖最后由 wuyvzhang 于 2016-8-2 17:36 编辑 <br /><br />此地禁止大小便,违者没收工具。

www.138923.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投ダ注任何游戏顶级信用ダ提现即时到账SO.CC

inushome 发表于 2013-5-22 16:16:27

本帖最后由 wuyvzhang 于 2016-8-2 17:36 编辑 <br /><br />在一辆拥挤的公车上,一位女郎忽然叫了起来:别挤啦!别挤啦!把人家的奶都挤出来啦!(她拿着酸奶呢)。

www.138901.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投ˋ注任何游戏顶级信用ˋ提现即时到账SO.CC

zhufeng518 发表于 2013-5-25 12:33:54

本帖最后由 wuyvzhang 于 2016-8-2 17:36 编辑 <br /><br />饭在锅里,我在床上*^_^*

www.138105.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投ヨ注任何游戏顶级信用ヨ提现即时到账SO.CC
页: [1]
查看完整版本: 用脚本在Hyper-V上自动创建虚拟机