W2K12 R2 Core Powershell script, enable automatic update.


hello gents.

im in need of assistance. have been trying last couple of days make or find usable script automatic set windows update "automatic"(notificationlevel 4), default set "manual".

i have tried following:

cscript c:\windows\system32\scregedit.wsf /au 4

net stop wuauserv
net start wuauserv

however, when running "cscript" in/though powershell script "access denied". there must standalone powershell script can without "cscript" comination.

any thoughts?

thanks.

hi,

we can open powershell administrator, please try below steps:

type powershell enter powershell session.

type start-process powershell –verb runas , press enter.

and run

cscript c:\windows\system32\scregedit.wsf /au 4

hope helps.

regards,

yan li


regards, yan li



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file