8 Replies Latest reply on Feb 13, 2013 5:32 AM by Raj NameToUpdate

    How to add windows features part for compliance check

      I can get some windows featuers via VBScript with the below script. Is it possible to get the windows featuers as part for compliance Job??


      On Error Resume Next

      strComputer = "."

      Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

      Set colItems = objWMIService.ExecQuery("Select * from Win32_ServerFeature",,48)

      For Each objItem in colItems

          Wscript.Echo "ID: " & objItem.ID

          Wscript.Echo "Name: " & objItem.Name

          Wscript.Echo "ParentID: " & objItem.ParentID