/build/static/layout/Breadcrumb_cap_w.png
02/18/2019 217 views

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:

 Is anyone logged in?

Who is logged in?

Are multiple people logged in?  If so, Who?


Thanks!

0 Comments   [ + ] Show comments

Comments


All Answers

0

can you please show what you are trying?

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)

Answered 02/18/2019 by: Nico_K
Red Belt

  • Thank you, this shows me the local user accounts created on the machine, but not what users are currently logged in.
0

you need ShellCommandTextReturn(cmd /c Query user)

Answered 02/19/2019 by: SMal.tmcc
Red Belt

  • Exactly! But it doesn't run when machines check in. It runs fine manually from command line.
    • it is a sysnative problem you are running into. query.exe does not exist in the 32bit system directory "syswow64" so the 32 bit kace client cannot find the file to run.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share