I saw some related questions but none of the solutions didn't work for me. I have windows server 2012R2 and I need to disable it automatic windows updates with Powershell v5.0 or batch (Powershell is preferred).
I can do it manually, by opening gpedit.msc
, navigating to Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update
and then changing Configure Automatic Updates
to Disable
.
How can that be done automatically without using external powershell modules (such as PolicyFileEditor
).
Is there an equivalent registry key that changing it can get the job done? I know that there is one for Windows server 2008 but I'm using 2012R2.