颇为阿娇978 发表于 2018-6-8 08:43:44

用脚本在Hyper

  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

脚本见附件。



附件:http://down.51cto.com/data/2360960
页: [1]
查看完整版本: 用脚本在Hyper