![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Re: List users connected via Remote Desktop & console? I would also like to parse the output of qwinsta via vbscript. However, I am not sure how to accomplish this in order to show only "rdp-tcp#" or "ICA-tcp#". CAn you please show an example? "atavachron" wrote: Quote: > Personally, I find it easier to parse the output of qwinsta.exe via > vbscript. IIRC it's only available from winXP on, though. > > regards, > alejandro > > On Oct 11, 9:00 am, Claude Lachapelle > <ClaudeLachape...@xxxxxx> wrote: Quote: > > Could you told me how I could distinguish between local console & remote > > desktop sessions: > > > > Z:\Sysinternals\PSTools>psloggedon \\server01 > > > > loggedon v1.33 - See who's logged on > > Copyright ® 2000-2006 Mark Russinovich > > Sysinternals -www.sysinternals.com > > > > Users logged on locally: > > Error: could not retrieve logon time > > NT AUTHORITY\LOCAL SERVICE > > Error: could not retrieve logon time > > NT AUTHORITY\NETWORK SERVICE > > 10/10/2007 1:56:38 PM DOMAIN1\user1 > > 09/10/2007 10:20:43 AM DOMAIN1\user2 > > Error: could not retrieve logon time > > NT AUTHORITY\SYSTEM > > > > Users logged on via resource shares: > > 11/10/2007 8:37:51 AM DOMAIN1\user3 > > > > About the QUERY command, thanks for the information, I was not aware of this > > server utility -- if I could'n find a way to VBScript the equivalent, I will > > run it remotely. > > > > Thanks."Pegasus (MVP)" wrote: Quote: > > > What you report is incorrect: psloggedon.exe will distinguish > > > clearly between console and remote sessions. Quote: > > > If you're unable to solve your problem with scripting then > > > you could use these commands to distinguish between active > > > and idle sessions: Quote: > > > query user > > > query session Quote: Quote: > > > "Claude Lachapelle" <ClaudeLachape...@xxxxxx> wrote in > > > messagenews:BC7DAF6C-9FA3-4F81-BCEA-5EB155BB3DCF@xxxxxx > > > > Usefull, but not enough, it is not giving us if it's at the console or via > > > > Remote Desktop, and if the session is active or idle/disconnected. Quote: > > > > I'm pretty sure we can get this information by using the WMI provider.... > > > > still searching. Quote: > > > > Thanks. Quote: > > > > "Pegasus (MVP)" wrote: Quote: > > > >> "Claude Lachapelle" <ClaudeLachape...@xxxxxx> wrote in > > > >> messagenews:0C0BA5E7-23AD-4806-97CD-159201BB5881@xxxxxx > > > >> > Hi! Quote: > > > >> > I would like to write down a script that will enumerate all users > > > >> > actually > > > >> > connected on all our servers via Remote Desktop (active, inactive, > > > >> > disconnected) and on their consoles, to find out where administrators > > > >> > forget > > > >> > to logoff, and this way avoid having problem with terminal licensing (2 > > > >> > connections allowed only) and console locked! Quote: > > > >> > Does somebody already wrote down something doing that? Quote: > > > >> > Thanks. Quote: > > > >> > Claude Lachapelle > > > >> > Systems Administrator, MCSE Quote: > > > >> You could use psloggedon.exe fromwww.sysinternals.com. > > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Switch users under Remote Desktop | Vista account administration | |||
| Two Remote Desktop Users at the same time ?? | Vista General | |||
| WVT x86 can not be connected to as Remote Desktop host | Vista networking & sharing | |||
| WVT x86 can not be connected as Remote Desktop host | Vista networking & sharing | |||
| 2 users simultaneously with Remote Desktop | Vista General | |||