Remote Desktop Details
You mean something like the script below? In latest operating systems there are possibilities to trigger action according to the event (event log) and this allows for registering login and logout. Regards Milos #Find logged in user of remote computer $computer=read-host "Enter computer name:" gwmi win32_computersystem -comp $computer | select USername,Caption,Manufacturer
June 12th, 2012 1:22am

Thanks Milos but there are few things i need to clear up. 1. I get Access denied on most other PCs, i assume i need X level of access, either some explicit wmi permission or to be a valid user on the remote machine ? Is there a specific "ok to use remote wmi" priviledge ? 2. This returns who is logged in, not where they are logged in from. e.g. These are Vmware VMs, which means you can get console access as well as remote desktop access. When you access a non server vm (one login session) from the VM console, it tells you who is logged on and what machine is the end point for RDP. I would like to find the end point via a script. Thanks
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2012 2:13am

Thanks Milos but there are few things i need to clear up. 1. I get Access denied on most other PCs, i assume i need X level of access, either some explicit wmi permission or to be a valid user on the remote machine ? Is there a specific "ok to use remote wmi" priviledge ? 2. This returns who is logged in, not where they are logged in from. e.g. These are Vmware VMs, which means you can get console access as well as remote desktop access. When you access a non server vm (one login session) from the VM console, it tells you who is logged on and what machine is the end point for RDP. I would like to find the end point via a script. Thanks
June 13th, 2012 2:13am

Hi This is a bit of gold plating, but it would be good if we could establish remotely in a tool, who was logged onto a VM. Now i know you can try a Remote Desktop and get a warning about a logged in user, but this is of little help. => Ideally i would like to get the machine name of the remote user and the user logged into a VM ? (WMI ?) The machine name comes in handy when various people are using a generic account like our buildadmin account. The context here is WIndows 7 and some older XP machines. NB: I have found reference to the qwinsta or "query session" command, however even though i an admin and have RDP access to a remote the name of a remote VM. Thanks
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2012 8:33pm

You mean something like the script below? In latest operating systems there are possibilities to trigger action according to the event (event log) and this allows for registering login and logout. Regards Milos #Find logged in user of remote computer $computer=read-host "Enter computer name:" gwmi win32_computersystem -comp $computer | select USername,Caption,Manufacturer
June 14th, 2012 1:19am

Hi, Have you tried the Net Session command which is used to manages server/client computer connections? Here is the document talking about Net Session command http://technet.microsoft.com/en-us/library/bb490711.aspx Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 14th, 2012 7:09am

Thanks Peterson This looked promising.. When i run this from an elevated CMD shell on my local machine (win 7) it says there are not entries yet i am logged on. When i run for another machine which has an RDP session (win7) on it it shows "a session does not exist with the computer name" => My guess is it does not work under windows 7 regards
June 14th, 2012 11:05pm

Hi Greg, It also works under Windows 7. Please note that Net Session command is used to list or disconnect sessions between the computer and other computers on the network. If you RDP to the Windows 7 client, and run the Net session in the RDP session, then it works. Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 15th, 2012 1:04am

Thanks Peterson This looked promising.. When i run this from an elevated CMD shell on my local machine (win 7) it says there are not entries yet i am logged on. When i run for another machine which has an RDP session (win7) on it it shows "a session does not exist with the computer name" => My guess is it does not work under windows 7 regards
June 15th, 2012 10:42pm

Hi Greg, It also works under Windows 7. Please note that Net Session command is used to list or disconnect sessions between the computer and other computers on the network. If you RDP to the Windows 7 client, and run the Net session in the RDP session, then it works. Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 16th, 2012 12:42am

Hi, Have you tried the Net Session command which is used to manages server/client computer connections? Here is the document talking about Net Session command http://technet.microsoft.com/en-us/library/bb490711.aspx Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 16th, 2012 6:41am

Hi Greg, I have not heard you for a couple of days, could you give me an update about the issue? Thanks and I look forward to your reply. Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 19th, 2012 1:19am

Hi I was away yesterday. From my viewpoint, net session does not work as i understand it. In a Windows 7 Sp1, run as admin CMD, net session returns "there are no entries in the list" yet i have two outgoing RDP sessions running. When i do "net session \\remote_machine" from my machine i get "A session does not exist with that computer name." yet when i go to the file server ("remote machine"i do a net session it returns a big list of users accessing files, i.e. it is unrelated to Remote desktop sessions. Thus i think we are at cross purposes, you have your own context of what this does and mine is that i am only interested in remote desktop information, as per the picture above. Also (as above) i would like to know the answer to "1. I get Access denied on most other PCs, i assume i need X level of access, either some explicit wmi permission or to be a valid user on the remote machine ? Is there a specific "ok to use remote wmi" priviledge ?" Thanks for your help anyway
June 21st, 2012 12:21am

Hi Greg, I have not heard you for a couple of days, could you give me an update about the issue? Thanks and I look forward to your reply. Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 21st, 2012 12:55am

Hi I was away yesterday. From my viewpoint, net session does not work as i understand it. In a Windows 7 Sp1, run as admin CMD, net session returns "there are no entries in the list" yet i have two outgoing RDP sessions running. When i do "net session \\remote_machine" from my machine i get "A session does not exist with that computer name." yet when i go to the file server ("remote machine"i do a net session it returns a big list of users accessing files, i.e. it is unrelated to Remote desktop sessions. Thus i think we are at cross purposes, you have your own context of what this does and mine is that i am only interested in remote desktop information, as per the picture above. Also (as above) i would like to know the answer to "1. I get Access denied on most other PCs, i assume i need X level of access, either some explicit wmi permission or to be a valid user on the remote machine ? Is there a specific "ok to use remote wmi" priviledge ?" Thanks for your help anyway
June 22nd, 2012 12:06am

Hi , Wish these posts will help for you: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/60a9ef66-ae65-4b67-abf5-ce5b78c57448/ http://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/2eecbf41-42c7-4ae2-872d-73e473b04616 Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2012 5:01am

Hi , Wish these posts will help for you: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/60a9ef66-ae65-4b67-abf5-ce5b78c57448/ http://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/2eecbf41-42c7-4ae2-872d-73e473b04616 Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 23rd, 2012 4:59am

Thanks for the help The first url is a dead end, the 2nd covers authenitication. As for the original query on finding RDP session information we are unresolved on my side. On our 2008 r2 file server, even though i am on it as a remote desktop user, net session does NOT show me but shows all the people accessing the drives. From my point of view, "net session" is not the way to resolve my original questions. Regards Greg
Free Windows Admin Tool Kit Click here and download it now
June 24th, 2012 7:59pm

Thanks for the help The first url is a dead end, the 2nd covers authenitication. As for the original query on finding RDP session information we are unresolved on my side. On our 2008 r2 file server, even though i am on it as a remote desktop user, net session does NOT show me but shows all the people accessing the drives. From my point of view, "net session" is not the way to resolve my original questions. Regards Greg
June 25th, 2012 7:39pm

Hi, I thought the post I deliverred to you would answer your questions: Also (as above) i would like to know the answer to "1. I get Access denied on most other PCs, i assume i need X level of access, either some explicit wmi permission or to be a valid user on the remote machine ? Is there a specific "ok to use remote wmi" priviledge ? Since the Net Session doesn't resolve your issue, we may consider the PowerShell command, here is another post wish help you: http://social.technet.microsoft.com/Forums/uk/winserverpowershell/thread/3659f957-6dc5-4534-9e8b-e29bbcc99b34 Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 26th, 2012 3:05am

Hi, I thought the post I deliverred to you would answer your questions: Also (as above) i would like to know the answer to "1. I get Access denied on most other PCs, i assume i need X level of access, either some explicit wmi permission or to be a valid user on the remote machine ? Is there a specific "ok to use remote wmi" priviledge ? Since the Net Session doesn't resolve your issue, we may consider the PowerShell command, here is another post wish help you: http://social.technet.microsoft.com/Forums/uk/winserverpowershell/thread/3659f957-6dc5-4534-9e8b-e29bbcc99b34 Regards, Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 27th, 2012 2:46am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics