I am trying to create a reusable script that will change the automatic update settings in the registry for future Windows VMs that my company creates. I want to set the Configure Automatic Updates value to enabled and set the Specify intranet Microsoft update service location to enabled, as well as setting two URLs pointing to my WSUS servers. I'm not sure how to accomplish this with a PowerShell script, as I am very new to scripting PowerShell, so if someone could lend some help or point me in the right direction, that would be greatly appreciated.
Also not sure if this is the right place to post this question, if it isn't let me know and ill move it.