WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE COM ADO CDO ADSI LDAP
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Determining Whether Automatic Updates is Enabled


;Determining Whether Automatic Updates is Enabled
;This script cannot be run against remote computers.


objAutoUpdate = CreateObject("Microsoft.Update.AutoUpdate")
objSettings = objAutoUpdate.Settings
level = objSettings.NotificationLevel

Switch level
    Case 0
        str = "Notification level: Automatic Updates is not configured by the user or by a Group Policy administrator."
        Break
    Case 1
        str = "Notification level: Automatic Updates is disabled."
        Break
    Case 2
        str = "Notification level: Automatic Updates prompts users to approve updates before downloading or installing."
        Break
    Case 3
        str = "Notification level: Automatic Updates automatically downloads updates, but prompts users to approve them before installation."
        Break
    Case 4
        str ="Notification level: Automatic Updates automatically installs updates per the schedule specified by the user."
        Break
    Case level
        str = "Notification level could not be determined."
EndSwitch
Message("NotificationLevel", str)

Article ID:   W17435
File Created: 2008:04:10:15:10:22
Last Updated: 2008:04:10:15:10:22