LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

list of logged in user names

Solved!
Go to solution

Hi,

 

I want the list of all the logged in usernames. I tried using "query name" command using System Exec.vi but got the error : 'query' is not recognized as an internal or external command, operable program or batch file.

 

Is there any other way to get the list of logged in user names?

 

Thanks,

Ritesh

0 Kudos
Message 1 of 4
(2,955 Views)

Did you "Ask the Web"?  Several answers seem to be there ...

 

Bob Schor

0 Kudos
Message 2 of 4
(2,948 Views)

Yes, I did, and the most common answer is to use "query name" in commandline. 

That command works fine if I use windows command line tool but when I tried running that command in System Exec.vi, I get the error that I mentioned in my previous post.

0 Kudos
Message 3 of 4
(2,942 Views)
Solution
Accepted by LVCoder

It's in your Windows/System32 directory and that directory is off-limits to non-administrative programs as a security measure.

 

Copy it to another unprotected folder, then use the full path to the copied utility:

 

cmd /c "C:\NewDir\query.exe" user

 

 

Message 4 of 4
(2,906 Views)