$imagefile="D:\tftproot\win\hbcd\x64\sources\boot.wim"
$driversdir="D:\git\drivers\w10"
$mountdir="D:\temp\mount"
Dism /Get-ImageInfo /imagefile:$imagefile
#add to index1
DISM /Mount-Image /ImageFile:$imagefile /index:1 /MountDir:$mountdir
DISM /Image:$mountdir /Add-Driver /Driver:$driversdir /recurse /forceunsigned
#DISM /UnMount-Image /MountDir:$mountdir /Discard
DISM /UnMount-Image /MountDir:$mountdir /Commit
#add to index2 ...
$driversdir="D:\git\drivers\w10"
$mountdir="D:\temp\mount"
Dism /Get-ImageInfo /imagefile:$imagefile
#add to index1
DISM /Mount-Image /ImageFile:$imagefile /index:1 /MountDir:$mountdir
DISM /Image:$mountdir /Add-Driver /Driver:$driversdir /recurse /forceunsigned
#DISM /UnMount-Image /MountDir:$mountdir /Discard
DISM /UnMount-Image /MountDir:$mountdir /Commit
#add to index2 ...
Ратнер Арсений, arsenyratner@gmail.com, 7 985 273 2090
Комментариев нет:
Отправить комментарий