如何才能取得win2000系统存在有哪些漏洞的列表

解决方案 »

  1.   

    Set objSession = CreateObject("Microsoft.Update.Session")
    Set objSearcher = objSession.CreateUpdateSearcher
    Set objResults = objSearcher.Search("Type='Software'")
    Set colUpdates = objResults.UpdatesFor i = 0 to colUpdates.Count - 1
        Wscript.Echo "Title: " & colUpdates.Item(i).Title
        Wscript.Echo "Autoselect on Web sites: " & colUpdates.Item(i).AutoSelectOnWebSites
        For Each strUpdate in colUpdates.Item(i).BundledUpdates
            Wscript.Echo "Bundled update: " & strUpdate
        Next
        Wscript.Echo "Can require source: " & colUpdates.Item(i).CanRequireSource
        Set objCategories = colUpdates.Item(i).Categories    For z = 0 to objCategories.Count - 1
            Wscript.Echo "Category name: " & objCategories.Item(z).Name
            Wscript.Echo "Category ID: " & objCategories.Item(z).CategoryID
            For Each strChild in objCategories.Item(z).Children
                Wscript.Echo "Child category: " & strChild
            Next
            Wscript.Echo "Category description: " & objCategories.Item(z).Description
            Wscript.Echo "Category type: " & objCategories.Item(z).Type
        Next    Wscript.Echo "Deadline: " & colUpdates.Item(i).Deadline
        Wscript.Echo "Delta compressed content available: " & _
            colUpdates.Item(i).DeltaCompressedContentAvailable
        Wscript.Echo "Delta compressed content preferred: " & _
            colUpdates.Item(i).DeltaCompressedContentPreferred
        Wscript.Echo "Description: " & colUpdates.Item(i).Description
        Wscript.Echo "EULA accepted: " & colUpdates.Item(i).EULAAccepted
        Wscript.Echo "EULA text: " & colUpdates.Item(i).EULAText
        Wscript.Echo "Handler ID: " & colUpdates.Item(i).HandlerID    Set objIdentity = colUpdates.Item(i).Identity
        Wscript.Echo "Revision number: " & objIdentity.RevisionNumber
        Wscript.Echo "Update ID: " & objIdentity.UpdateID    Set objInstallationBehavior = colUpdates.Item(i).InstallationBehavior
        Wscript.Echo "Can request user input: " & objInstallationBehavior.CanRequestUserInput    Select Case objInstallationBehavior.Impact
            Case 0
                Wscript.Echo "Installation impact: Typical"
            Case 1
                Wscript.Echo "Installation impact: Negligible"
            Case 2
                Wscript.Echo "Installation impact: High"
            Case Else
                Wscript.Echo "The installation impact could not be determined."
        End Select    Select Case objInstallationBehavior.RebootBehavior
            Case 0
                Wscript.Echo "Reboot behavior: No reboot required after installation."
            Case 1
                Wscript.Echo "Reboot behavior: A reboot is required after installation."
            Case 2
                Wscript.Echo "Reboot behavior: A reboot might be required after installation."
            Case Else
                Wscript.Echo "Reboot behavior: No information available regarding the need for a reboot."
        End Select    Wscript.Echo "Requires network connectivity: " & objInstallationBehavior.RequiresNetworkConnectivity
        Wscript.Echo "Is beta: " & colUpdates.Item(i).IsBeta
        Wscript.Echo "Is hidden: " & colUpdates.Item(i).IsHidden
        Wscript.Echo "Is installed: " & colUpdates.Item(i).IsInstalled
        Wscript.Echo "Is mandatory: " & colUpdates.Item(i).IsMandatory
        Wscript.Echo "Is uninstallable: " & colUpdates.Item(i).IsUninstallable
        For Each strLanguage in colUpdates.Item(i).Languages
            Wscript.Echo "Supported language: " & strLanguage
        Next    Wscript.Echo "Last deployment change time: " & colUpdates.Item(i).LastDeploymentChangeTime
        Wscript.Echo "Maximum download size: " & colUpdates.Item(i).MaxDownloadSize
        Wscript.Echo "Minimum download size: " & colUpdates.Item(i).MinDownloadSize
        Wscript.Echo "Microsoft Security Response Center severity: " & colUpdates.Item(i).MsrcSeverity
        Wscript.Echo "Support URL: " & colUpdates.Item(i).SupportURL    Select Case colUpdates.Item(i).Type
            Case 1
                Wscript.Echo "Update type: Software"
            Case 2
                Wscript.Echo "Update type: Driver"
           Case Else
                Wscript.Echo "Update type: The update type could not be determined."
        End Select    Wscript.Echo "Uninstallation notes: " & colUpdates.Item(i).UninstallationNotes    x = 1
        For Each strStep in colUpdates.Item(i).UninstallationSteps
            Wscript.Echo x & " -- " & strStep
            x = x + 1
        Next    For Each strArticle in colUpdates.Item(i).KBArticleIDs
            Wscript.Echo "KB article: " & strArticle
        Next    Wscript.EchoNext
    存为vbs文件运行,提示错误代码:80072EFD,急求解????????????????