After downloading the vbs file, place it on your WSUS server (I usually use c:\)
If you already use autoapproveupdates.vbs for SUS and have upgraded to WSUS, then just replace the file with this new one.
You have the option of using Jmail or the windows CDOnts mail components, by default it uses JMail since I find this more reliable but you have to install Jmail (free from www.dimac.net) on your sus server.
Note, RE: Service Packs in the previous script service packs could be stopped from being approved in the script. The best way of doing this in WSUS is not set the auto approval options in to not detect and install service packs.
Set the script options by opening autoapproveupdates.vbs in notepad and edit the setup configuration section
usejmail = true '' If false will use CDonts
EmailDstName = "firstname.lastname@example.org"
EmailReplyToName = "email@example.com"
EmailSrvName = "smtp.company.com"
WSUS_Con_STRING = "Provider=SQLOLEDB;Initial Catalog=SUSDB;Data Source=<YOURSERVERNAME>\WSUS;Integrated Security=SSPI;Persist Security Info=False"
Change the email fields with relevant addresses for your organization, you have to run the script on the same machine as the WSUS server since by default the "MSDE" SQL server is not accessible over the network and change <YOURSERVERNAME> to the netbios name of your server . If you have installed WSUS on a machine with your own SQL server you must change the "<YOURSERVERNAME>\WSUS" to the name and instance of the SQL server with the SUSDB database.
Set the scheduled task: (not required for old script users)
Then set up a scheduled task on the server (control panel>scheduled tasks), right click and select add new task (rather than using the wizard) give it a sensible name such as "Approve WSUS Updates" then edit the task.
Set the run box to the command line: "cscript c:\autoapproveupdates.vbs"
Leave the "start in" folder blank, but set the run as account an administrator account that has access to the SQL server WSUS database and the password is unlikely to change, you could set up a service account just for this purpose if you wanted or use the local administrator account.
Set the schedule to run say an hour or two (depending on your connection speed) after your WSUS server is set to download updates.
Just to make sure the script should run ok, open a command prompt and then type "cscript c:\autoapproveupdates.vbs", and check for any error messages, if you see any the schedule will probably not work either, just check paths and permissions, these are the most likely causes of errors.