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
Post a Comment