How can I disable auto updates on VMs created from custom images
I've tried to configure image with
Set-ItemProperty -Path "HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name NoAutoUpdate -Value 1
But after deployment is complete, NoAutoUpdate key is set to 0
What is the right approach here?