windows - Auto install win image via Powershell-script -
i'm trying automate installation of windows 10 on laptops. can't use sccm, because company doesn't want make laptops manageable via network. resorted making custom winpe usb stick.
i created 2 partitions on stick, 1 winpe , 1 location of 'to-be-installed'-image , mount folder 'to-be-installed'-image. want automate installation using powershell-script. added powershell support "boot.wim"-image created winpe.
the problem i'm facing that, when want mount 'to-be-installed'-image mount folder in other partition of usb stick, following message:
the drive of specified mount path not supported. please mount volume on fixed drive.
does know if possible mount "mount"-folder on usb stick, or know other options can use automate installation of image?
just sure, below code created test if possible mount , un-mount partition.
$driveletter = get-wmiobject -query "select deviceid win32_logicaldisk volumename = 'images'" $d = $driveletter.deviceid write-host "the driveletter $d" dism /mount-image /imagefile:"$d\sources\boot.wim" /index:1 /mountdir:"$d\mount" start-sleep -s 5 dism /unmount-wim /mountdir:"$d\mount" /discard
Comments
Post a Comment