2 Replies Latest reply on Jul 30, 2019 8:30 AM by Avi G

    Windows command in Local configuration object

    Avi G
      Share This:

      I'm on 8.9.03.647. I've a Local Configuration object created for windows inside a component template. Its a simple windows command to check the license status <<cmd /c "cscript.exe /Nologo C:\\Windows\\system32\\slmgr.vbs /dli | findstr "License"">>. Have used default values for grammar and encoding ..etc.

       

      When I try to check for the Licensed value in compliance rule as below, it returns non-compliant but whereas the output has the string I search for.

      Rule&amp;Compliance_Check.PNG

       

      I created the extended object and below is the output we see.

      Extended_Object_Output.PNG

      If command is run manually against the server I see below output.

       

      C:\Users\XYZ>cmd /c "cscript.exe /Nologo C:\\Windows\\system32\\slmgr.vbs /dli | findstr "License""

      License Status: Licensed

      C:\Users\XYZ>

       

      Any clue where I might be wrong with compliance rules?