01-13-2016 01:47 PM
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
Solved! Go to Solution.
01-13-2016 02:04 PM
Did you "Ask the Web"? Several answers seem to be there ...
Bob Schor
01-13-2016 02:10 PM
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.
01-13-2016 03:09 PM
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