/build/static/layout/Breadcrumb_cap_w.png

How to get Kace Agent running as local system to see who is logged in to console

for /f %%i in ('%SystemRoot%\Sysnative\query user') do (set uconsole=%%i) Set uconsole=%uconsole:~1% Echo %uconsole%

Comments

  • I'm not sure what context you would use this in. - chucksteel 9 years ago
  • There are various reasons:
    MI needs to add something to the profile of the currently logged in user.
    Script has to run as local admin but needs some form of interaction with the locally logged in user's profile. - briancollins 9 years ago
This post is locked

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

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ