If it is just about the text output off quser. You will have to use a hex editor to figure out if one of these is the issue. Monday, November 7, PM. Monday, June 11, AM. Search for scripts that retrieve the logon history if it exists. The Gallery has a few. Update a two year old question, because there are some of us who are still reading it. Friday, September 14, PM. Friday, March 1, PM. Saturday, March 2, PM. Wednesday, July 10, AM. This will not work for the question asked. It is only for RDS servers.
Wednesday, July 10, PM. Just because i already went the distance to get this This is something I've used to check and see if the logged on user is the one I expect was a sanity check in a script to make sure I'm dealing with the particular user's computer.
ProcessName -eq "Explorer. You can run and configure automatic service startup using PowerShell :. You can also get a list of sessions on a remote computer using the built-in qwinsta tool. To get a list of logged user sessions from a remote computer, run the command:.
The tool returns a list of all sessions active and disconnected by an RDP timeout on an RDS server or in a desktop Windows 10 11 edition even if you allowed multiple RDP connections to it. Open the PowerShell console and run the command:.
The command returns the name of the user logged on to the computer. The following command will return the logged-in username from the remote computer:. This is a limitation with Remote Desktop running a client workstation like Windows Remote desktop is just a single desktop not multiple desktops.
IF you want this capability you have to use Remote desktop services but that requires Windows Server and and not Windows 10 but that's pretty extreme. You could also set up multiple network cards on the computer and build multiple virtual machines with windows 10 in hyper-v Or you could use Parallels on your Mac and create a virtual machine with Windows But if you are interested in any of those solutions let me know and I can guide you.
Sorry can't be more help than that. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP Potentially Unwanted Products.
Thoroughly research any product advertised on the site before you decide to download and install it. How satisfied are you with this reply? Thanks for your feedback, it helps us improve the site.
In reply to SarahKong's post on August 14, Dear Sarah, Thank you for your prompt response. 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.
June 16, at pm. This PowerShell script works for me all the time. August 4, at am. I like the query command. August 7, at pm. February 25, at pm. April 24, at am. July 2, at pm. November 20, at am. Greetings from six years in the future. This post and the comments are very helpful.
0コメント