Throughout the day several people will remotely logon to a shared computer, generally logging off when they are through. Note, these users have Admin rights on both, their PC and the one they remote into.
It would be nice to have the ability to see who is actively logged on before making this choice. I have searched the web and found various solutions that let you know who made the last connection, which does not translate into them being the last, or currently "active" user.
On a side note, it seems weird in Windows 7 that the current, active user's ID is displayed 'after' I click 'Yes' to login over them. When we were using Windows XP, one could see the ID of the current active user 'before' deciding to continue logging on. You could put the query command in a batch file, so users can just double click it to see who is logged into that computer. This is useful if you want to ensure that a particular user is not logged on when you are about to change their user profile configuration.
This will see if explorer. If a machine is not logged in, no explorer. If someone is logged on, the explorer. The wmic command in Command Prompt can retrieve this information. However in order for the clients to respond, a firewall rule is first required. I found a post on community. The examples above are for a PC that is remote and the query is carried out over the network.
If the command is run locally then it would have a slightly different syntax. For example:. Sign up to join this community. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? The DevOps on Windows Toolbox. Simple Steps to Software Operations Success. December 8, at pm. Russ Collier. Thanks Jeff! September 23, at am. February 16, at am. September 23, at pm. Hi Mitch! Hope that helps! October 21, at am. Hi Russ. That works great! March 14, at am. August 30, at pm. Will it work on WinXP?
December 6, at pm. Turning this into a batch file that prompts for the remote computer name: echo off echo Remote query logged in user of specified computer. Answered by:. Archived Forums. The Official Scripting Guys Forum! If your answer is "yes," you know what to do.
Dive in and help somebody! If your answer is "no," welcome to our fun little world! We'd recommend that you first head over to the Script Center, get your feet wet, and then come back to either ask or answer questions. We can't be everywhere at once we know—shocking! The Microsoft Scripting Guys 0 2. Sign in to vote. Friday, June 5, PM. This is a PCN world and due to it I cant use 3rd party software.
When a user is loged on remotely the computer class is null. Edited by jrv Friday, June 5, PM. Microsoft tools aren't really third party.
0コメント