1 Reply Latest reply on Sep 14, 2015 12:46 PM by Bill Robinson

    windows service status compliance

      i am trying to create template to check the windows services which are STARTUP TYPE = AUTO_START and Status=RUNNING

      this should check all services on the target and list the services not compliant.

      My rule

      if

      "Windows Service*"."Start Type(Windows)"="AUTO_START"

      then

         foreach "Windows Service:*"

      @"State (Windows)"@ ="RUNNING"

      end

      end

       

      When evaluates this rule is only checking all the services that are not set start type"AUTO_START true or not but not going to the next loop.

       

      I have changed my rule and tested as bellow

      if

      "Windows Service*"."Start Type(Windows)"="AUTO_START AND

      THEN

      "Windows Service*"."State (Windows)"="RUNNING"

      end

      still it is listing all services and testing only Start Type=AUTO_START or not.


      My goal is only to check the services set to Start Type to AUTOMATIC are RUNNING  or NOT.


      Also i tried with

      "Windows Service*"."Start Type(Windows)"="AUTO_START AND

      "Windows Service*"."State (Windows)"="RUNNING"


      but results is same listing all services including that are not set for AUTO_START


      Screenshots attached