Set "never check for updates" without disabling windows update service from powershell
hello,
i using following command set windows update never check updates via powershell:
$result=(get-wmiobject win32_service -filter 'name="wauserv"').changerestartmode("disabled") | out-null
unfortunately command disables windows update service, not want, instead want windows update set never check updates, , actual service should not modified. i've searched around , found nothing needlessly complex scripts accomplish this, i'm sure can reduced single ps command.
any thoughts?
i need set in template can deploy several different domains , workgroups. setting via gpo not option me.
the reason believe should able set single command because never check updates setting required, thereby eliminating need variables, if statements, etc etc etc.
just because you're looking change 1 setting doesn't mean length of command you'll need type.
here's 1 option:
don't retire technet! - (don't give yet - 12,950+ strong , growing)
Windows Server > Windows PowerShell
Comments
Post a Comment