|I have absolutely no programming experience. Thought that was worth mentioning. |
I'm adding a tiny piece of vb code to my login script that will turn Windows Update on and schedule it until I can get WSUS running. I plan on leaving the code in the login script for a little while and thought it would be smart to add a line that checks to see if WU was enabled already. If it is the script should end.
This is the code to enable Windows Update:
Const SCHEDULED_INSTALLATION = 4
Set objAutoUpdate = CreateObject("Microsoft.Update.AutoUpdate")
Set objSettings = objAutoUpdate.Settings
objSettings.NotificationLevel = SCHEDULED_INSTALLATION
Can someone please provide me the vb code that translates to: "if scheduled_installation = 4 then end"