Created
March 5, 2019 12:46
-
-
Save xfixic/7d1f692937c6df6eae49647fe67dd763 to your computer and use it in GitHub Desktop.
Enable RSAT Features on Windows 10 1809 Using PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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 | Remove-WindowsCapability –Online | |
| Add-WindowsCapability –online –Name “Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0” | |
| Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value $currentWU | |
| Restart-Service wuauserv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment