Activate/deactivate windows update service with script on Windows modern device's.

Solved
ON
Ola Nordenfelt
Optiscan AB

Hi
I wish to activate/deactivate windows update service with script on Windows modern device's.

It works fine to start or stop the update service sending the command "net start wuauserv" with PowerShell Native script.
But it does not work to send "sc config wuauserv start=disable" to completely disable windows update.

I can disable/enable windows update if I open a dos prompt on the device and type "sc config wuauserv start=disable" but i would like to send this command as a script in SOTI.
Is this possible?

2 years ago
Windows
ANSWERS
M
MPMOD@SOTI
a year ago

Hi Ola,

Thank you for posting on SOTI Pulse! 

Can you please try using this script in MobiControl using legacy mode below:

c:\Windows\System32\cmd.exe /c "sc config wuauserv start=disabled"

Another script that you can use that can be executed in PowerShell is:

Get-Service wuauserv | Set-Service -StartupType Disabled

Please let me know if this helps with your issue.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net lDiscussion Forum | Log a Case Online l LinkedIn 

Solution
ON
Ola Nordenfelt
a year ago

Hello
Both solution works perfectly.
Thank you so much for your help.
Regards
Ola

M
MPMOD@SOTI
a year ago

Hi Ola,

I am glad to see that your issue was resolved. 

Please feel free to reach out to us if you have any further questions in the future.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.netDiscussion Forum | Log a Case Online  l LinkedIn