Update setupMDT.ps1
This commit is contained in:
parent
fa33fb186b
commit
04dcfb2452
|
@ -26,11 +26,10 @@ New-PSDrive -Name "DS001" -PSProvider MDTProvider -Root "T:\DeploymentShare"
|
|||
new-item -path "DS001:\Operating Systems" -enable "True" -Name "Windows10auto" -Comments "For Old People" -ItemType "folder" -Verbose
|
||||
|
||||
#mount the windows ISO
|
||||
Mount-DiskImage -ImagePath "\\SynCloud\Data\Resources\Win10_22H2_English_x64.iso" | Get-Volume
|
||||
$info = Mount-DiskImage -ImagePath "\\SynCloud\Data\Resources\Win10_22H2_English_x64.iso"
|
||||
$Drive = ($info | get-volume) $info
|
||||
$Drive = ($info | get-volume)
|
||||
$Source = $Drive.DriveLetter+":\"
|
||||
|
||||
#import OS
|
||||
Import-Module "C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1"
|
||||
import-mdtoperatingsystem -path "DS001:\Operating Systems\Windows10auto" -SourcePath $Source -DestinationFolder "Windows 10 x64" -Verbose
|
||||
import-mdtoperatingsystem -path "DS001:\Operating Systems\Windows10auto" -SourcePath $Source -DestinationFolder "Windows 10 x64 auto" -Verbose
|
Loading…
Reference in a new issue