get list of computers from list of users

Posted on 2014-09-16
Last Modified: 2014-09-16
Hi all, I need to run  a task against over a 100 computers. All I have is a list of names, and no computer names. How can I use the list of names to pull the entire list of matching computers using a script or some free tool? Environment is server 2008R2, machines are W7 x64.
Question by:xzay1967
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 35

Accepted Solution

Joseph Daly earned 250 total points
ID: 40325855
This is very tough to do and the results you will get probably wont be very accurate. There is no link in active directory between a user account and the computer that they log into. There are options to restrict what computer a user can log on to but there is nothing natively to say that user A is logged into computer X.

That being said you could try looking at the c:\users directory and seeing what the last modified folder was. Usually this will correspond to the user who is currenly logged in or logged in last.
LVL 29

Assisted Solution

becraig earned 250 total points
ID: 40325862
If you just want all the windows 7 computers in your domain try something like below:

Import-Module Ac* 
Get-ADComputer -Filter {OperatingSystem -Like "Windows Server*7*"} -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack -Wrap -Auto

Open in new window


Author Comment

ID: 40325900
Thanks for the response guys, but maybe I need to better explain what I am trying to accomplish. I am not looking for what computer a user is necessarily logged onto, but rather what computer was assigned to them. example user joe schmo with username jschmo is assigned xyjmys1.  I know I can run this individually, which I am trying to avoid lol.
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

LVL 35

Expert Comment

by:Joseph Daly
ID: 40325901
Hmmm how are you running that individually? If you can share your process that you are currently using there may be a way to automate it.

Author Comment

ID: 40326003
When I say running individually I meant is. using a tool like LANDesk.
LVL 35

Expert Comment

by:Joseph Daly
ID: 40326027
Im trying to help you here but youre giving 1 sentence answers doesnt really give me any details that I can use to help you out.

Author Comment

ID: 40326466
My apologies, at this point we did it the old fashioned way. We use LANDesk Management Suite, so I just type a name, and it gave me the computer assigned. I knew I could do it that way, was just hoping to find some other way to pull from a list of names. I do appreciate you trying to help.

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question