madurham Posted April 24, 2015 Posted April 24, 2015 Is there a way to find out every logged on user for all PCs? Or even all PCs a user is currently logged into? We're having an issue with users choosing to switch user rather than logging off causing resources to be drained and temporary files filling up profiles on crashes. We'd like to be able to automatically inform users of where they should go to log off correctly I currently have a PowerShell script that will create a list of users and which PC they are logged into using Get-WmiObject but this only tells me one user per machine, I assume the most recent login.
DavetheITguy Posted April 24, 2015 Posted April 24, 2015 Just remove switch user from the start menu and disable it. This can be done via GPO.
madurham Posted April 24, 2015 Author Posted April 24, 2015 Just remove switch user from the start menu and disable it. This can be done via GPO. That would only create the more annoying problem of locked out users.
DavetheITguy Posted April 24, 2015 Posted April 24, 2015 We have removed, switch user and lock. we only give certain users these options.
Ephelyon Posted April 24, 2015 Posted April 24, 2015 GetUsers.cmd: @for /f "skip=1 tokens=1,2 delims=> " %%i in ('query user /server:%1') do @echo %%i GetUsers ComputerName
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now