in Windows server 2008 r2 , for this manual process
open run >gpedit.msc > computer configuration > windows templates > windows update > specify intranet microsoft update service location > https://www.10.101.10.10.com
and also state should be enabled/disabled
May i know how to do this using powershell, like scripting ?
Those settings are in Registry part, am asking about :
-
In the GPMC, expand Computer Configuration, expand Policies, expand Administrative Templates, expand Windows Components, and then click Windows Update.
-
In the Windows Update details pane, double-click Specify intranet Microsoft update service location.
- Click Enabled, and then, server in the Set the intranet update service for detecting updates and Set the intranet statistics server text boxes, type the same URL of the WSUS server. For example, type http://XX.XX.XX.XX in both boxes (where servername is the name of the WSUS server).
Is This POssible from Powershell Script end ?
Best Answer
That policy updates the following Registry key with a number of values:
Simply set these values, using the
Set-ItemProperty
cmdlet:You might have to restart the automatic update service for the changes to take effect