Reset WSUS/Automatic Updates

I have had many problems in the past trying to get Automatic Updates to talk to WSUS properly. This script will refresh all of the Automatic Updates settings on a server or workstation and hopefully connect the system back into WSUS.