![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | Query userid return cmpuer name New to PowerShell, new to AD What I would like to do is enter a users windows ID for a user who is logged on to a domain and have the computer name returned. Is this possible? Pointers on how to accomplish this would be welcomed. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Query userid return cmpuer name In message <E5DA4356-CB81-4FE3-B4A9-5AD31C5576B5@xxxxxx>, DanF <DanF@xxxxxx> writes Quote: >New to PowerShell, new to AD >What I would like to do is enter a users windows ID for a user who is logged >on to a domain and have the computer name returned. Is this possible? >Pointers on how to accomplish this would be welcomed. First, there really is no concept of someone who is logged in, at least from the domain persepective. The client knows it's logged in (it has a secure connection - IPC$ - to the DC) but the DC does not keep track of who's logged in at the current moment. It gets more complex in multi-dc environnments where one DC logs you on, and another responds to the query. Finally, the DC does not keep track of which system you are logged in on (you could be logged in to several - As I write this, I'm logged to my laptop, my workstation, two servers and a DC twice (once on the box and once via TS). HTH. -- Thomas Lee doctordns@xxxxxx |
My System Specs![]() |
| | #3 (permalink) |
| | Query user id return computer name I forget whose blog I saw this on but someone has a script to update the computer description field with a logon script when a user logs on. That way you can query AD on the description field to find a user. It's probably the easiest method I've seen to track logged on users. "DanF" wrote: Quote: > New to PowerShell, new to AD > What I would like to do is enter a users windows ID for a user who is logged > on to a domain and have the computer name returned. Is this possible? > Pointers on how to accomplish this would be welcomed. > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Query userid return cmpuer name In message <A6FA0629-B1B1-468C-9D66-4759D4EEB458@xxxxxx>, PaulChavez <PaulChavez@xxxxxx> writes Quote: >I forget whose blog I saw this on but someone has a script to update the >computer description field with a logon script when a user logs on. no way to ensure this is up to date. If a user shuts the lid on a laptop or pulls power on a desktop - there's no way to track that. Quote: >That way you can query AD on the description field to find a user. It's >probably the easiest method I've seen to track logged on users. logged into communicator. Thomas -- Thomas Lee doctordns@xxxxxx MVP - Admin Frameworks and Security |
My System Specs![]() |
| | #5 (permalink) |
| | RE: Query userid return cmpuer name Got WINS? "DanF" wrote: Quote: > New to PowerShell, new to AD > What I would like to do is enter a users windows ID for a user who is logged > on to a domain and have the computer name returned. Is this possible? > Pointers on how to accomplish this would be welcomed. > |
My System Specs![]() |
| | #6 (permalink) |
| | RE: Query userid return cmpuer name Got WINS? "DanF" wrote: Quote: > New to PowerShell, new to AD > What I would like to do is enter a users windows ID for a user who is logged > on to a domain and have the computer name returned. Is this possible? > Pointers on how to accomplish this would be welcomed. > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Return computer name | VB Script | |||
| How to combine/return multiple values from a sql query | VB Script | |||
| Query csv and return all entries within last x days | VB Script | |||
| Re: A REG QUERY that does not return "ERROR" when key not found | VB Script | |||
| query about User Folders. | Vista General | |||