Domain/setupMDT.ps1
Upgrayedd a18cd7b86e Add setupMDT.ps1
grabs the installers and installs the things, still working out the iso download and setup, might end up being prompts thru the gui for a bit
2024-08-17 21:27:36 -05:00

21 lines
1.6 KiB
PowerShell

Install-WindowsFeature WDS
Start-BitsTransfer "https://download.microsoft.com/download/3/3/9/339BE62D-B4B8-4956-B58D-73C4685FC492/MicrosoftDeploymentToolkit_x64.msi" \\SynCloud\Data\Resources\MDTx64.msi
msiexec /i \\SynCloud\Data\Resources\MDTx64.msi /qn
Start-BitsTransfer "https://download.microsoft.com/download/6/7/4/674ec7db-7c89-4f2b-8363-689055c2b430/adk/adksetup.exe" \\SynCloud\Data\Resources\adksetup.exe
Start-BitsTransfer "https://download.microsoft.com/download/3/c/2/3c2b23b2-96a0-452c-b9fd-6df72266e335/adkwinpeaddons/adkwinpesetup.exe" \\SynCloud\Data\Resources\adkwinpesetup.exe
cmd /c \\SynCloud\Data\Resources\adksetup.exe /features + /q /installpath "T:\WinADK"
cmd /c \\SynCloud\Data\Resources\adkwinpesetup.exe /features + /q /installpath "T:\WinADK"
Add-PSSnapIn Microsoft.BDD.PSSnapIn
Import-Module 'C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1'
mkdir T:\DeploymentShare
#new-PSDrive -Name "MDT" -PSProvider "MDTProvider" -Root "T:\DeploymentShare" -Description "MDT Deployment Share" -NetworkPath "\\ema\DeploymentShare$" -Verbose | add-MDTPersistentDrive -Verbose
#import-mdtoperatingsystem -path "MDT:\Operating Systems" -SourcePath "T:\Deploymentshare\Operating Systems\Windows 7 x64" -DestinationFolder "Windows 7 x64" -Verbose
#import-mdtdriver -path "MDT:\Out-of-Box Drivers" -SourcePath "T:\Drivers" -ImportDuplicates -Verbose
#update-MDTDeploymentShare -path "MDT:" -Verbose
#import-mdtoperatingsystem -path "MDT:\Operating Systems" -SourcePath "T:\Deploymentshare\Operating Systems\Windows 7 x64" -DestinationFolder "Windows 7 x64" -Verbose
#