#This was a real pain in the ass.MSU files are not ideal to deal with in PowerShell and far different from. #Use the next command with care if you changed the temporary folder from c:\RSAT to something else Remove-Item -Path $MSUPath -Recurse -Verbose Start-Process -FilePath dism.exe -ArgumentList $DismOpt -PassThru -Wait #Run dism with argument options. Start-Process -FilePath expand.exe -ArgumentList $ExpandOpt -PassThru -Wait #Expand RSAT installation files $DismOpt="/Online /Add-Package /PackagePath:$MSUPath\WindowsTH-KB2693643-圆4.cab" #Set dism.exe argument options $ExpandOpt='-f:* "'+$MSUPath+'\WindowsTH-RSAT_WS2016-圆4.msu" '+$MSUPath #Create argument list for expand.exe Start-BitsTransfer -Source '' -Destination $MSUPath\WindowsTH-RSAT_WS2016-圆4.msu -Verbose #Download 64-bit RSAT tools New-Item -ItemType Directory -Path $MSUPath -Verbose #Create temp folder #Download And Install Remote Server Administration Tools for Windows 10 On Windows 10 Creators Edition Using PowerShell #Just the code to install Remote Server Administration Tools 圆4 $MSUPath = 'c:\RSAT' #Set temp path
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |