From fa33fb186b3c20742c068f09ed00b65d3c3ea433 Mon Sep 17 00:00:00 2001 From: Upgrayedd Date: Sat, 17 Aug 2024 21:47:17 -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 afa949e..2ac88f5 100644 --- a/setupMDT.ps1 +++ b/setupMDT.ps1 @@ -23,7 +23,7 @@ mkdir T:\DeploymentShare #add Operating System Folder Import-Module "C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1" New-PSDrive -Name "DS001" -PSProvider MDTProvider -Root "T:\DeploymentShare" -new-item -path "DS001:\Operating Systems" -enable "True" -Name "Windows10" -Comments "For Old People" -ItemType "folder" -Verbose +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 @@ -33,5 +33,4 @@ $Source = $Drive.DriveLetter+":\" #import OS Import-Module "C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1" -New-PSDrive -Name "DS001" -PSProvider MDTProvider -Root "T:\DeploymentShare" -import-mdtoperatingsystem -path "DS001:\Operating Systems\Windows10" -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" -Verbose \ No newline at end of file