r/PowerShell • u/mikefrobbins • Oct 03 '18
Use PowerShell to Install the Remote Server Administration Tools (RSAT) on Windows 10 version 1809
https://mikefrobbins.com/2018/10/03/use-powershell-to-install-the-remote-server-administration-tools-rsat-on-windows-10-version-1809/16
u/Thotaz Oct 03 '18
It's weird (and frustrating) that under the hood Microsoft makes a distinction between Windows(optional) features, and Windows capabilities, but in the GUI they call the "capabilities" optional features just like the Windows optional features.
9
u/the_progrocker Oct 04 '18
This should work I believe. ms-updates are blocked on my firewall, so I'm trying to think up something else.
#Set Windows Update Server Key to 0
Set-ItemProperty -Path HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -Name UseWUServer -Value 0
#Restart Windows Update Service
Restart-Service -Name wuauserv -Force
#Get RSAT Tools
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
#Set Windows Update Server Key to 1
Set-ItemProperty -Path HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -Name UseWUServer -Value 1
#Restart Windows Update Service
Restart-Service -Name wuauserv -Force
#Done6
2
2
4
u/captain5260 Oct 03 '18
Granted I’m a command line guy, but damn, I love PowerShell! Can’t wait to run PowerShell to Install PowerShell. Waaaaaaaaaa? ;)
3
u/gaz2600 Oct 03 '18
I get an error "Add-WindowsCapability : Add-WindowsCapability failed. Error code = 0x800f0954"