Custom Inventory Rule using a Windows System Command

I am trying to create custom inventory rule using ShellCommandTextReturn running the command Query user. I cannot get it to run no matter now I try. What I am trying to accomplish is identify the following:

Comments

All Answers

The best way to run a Windows Command in a CIR is using the cmd interpreter:(like ShellCommandTextReturn(cmd /c net user) ) so the comman you are trying to run is running in the right environment.(cmd /c simply does not show the command window)