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:

http://stackoverflow.com/questions/9612609/how-do-i-set-windows-update-to-never-check-for-updates-with-powershell


don't retire technet! - (don't give yet - 12,950+ strong , growing)



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS