Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################################################
- # Install RSAT Feature on Demand on Windows 10 1809 Using PowerShell
- ####################################################################
- $currentWU = Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" | select -ExpandProperty UseWUServer
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value 0
- Restart-Service wuauserv
- Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online
- Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value $currentWU
- Restart-Service wuauserv
- #############
- # START NOTES
- #############
- ## Reference:
- ## <http://woshub.com/install-rsat-feature-windows-10-powershell/>
- ###########
- # END NOTES
- ###########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement