From 04dcfb24529b0829366cff53603579a310eb3597 Mon Sep 17 00:00:00 2001 From: Upgrayedd Date: Sat, 17 Aug 2024 21:50:24 -0500 Subject: [PATCH] Update setupMDT.ps1 --- setupMDT.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setupMDT.ps1 b/setupMDT.ps1 index 2ac88f5..6147590 100644 --- a/setupMDT.ps1 +++ b/setupMDT.ps1 @@ -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 \ No newline at end of file +import-mdtoperatingsystem -path "DS001:\Operating Systems\Windows10auto" -SourcePath $Source -DestinationFolder "Windows 10 x64 auto" -Verbose \ No newline at end of file