Install RSAT Tools on Windows 10: Difference between revisions

From DFWLPiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[categrory:windows]]
[[category:windows]]


This script will temporarily disable using WSUS settings as update source and switch to online.  After completion, it switches back to WSUS Source.
This script will temporarily disable using WSUS settings as update source and switch to online.  After completion, it switches back to WSUS Source.

Revision as of 13:21, 10 June 2020


This script will temporarily disable using WSUS settings as update source and switch to online. After completion, it switches back to WSUS Source.

$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

No idea why WSUS Feature on Demand isnt working, but it is what it is.