Issues running quser command via scripting
Hello!
I'm trying to use the script function to see all current logged in users on a system and write the results to a network path. I've tried a bunch of different ways to try and get this to work but for whatever reason the quser/queue user command ran from Kace doesn't return any information. The file gets created but it contains no data. Even if I try to write the file to the local system, it shows up blank. Running the command/batch locally works without a problem. Is this a bug or am I missing something?
quser > "\\networkpath\%computername%.txt"
Answers (1)
by default the script is running as SYSTEM user, which may not have enough rights to get the info.
You should it run as an elevated user which has the rights.
Comments:
-
I've tried SYSTEM, Local Admin, Domain Admin, nothing seems to work - colton.shaner 9 months ago