Solved

map computer logged user

Posted on 2013-11-04
9
278 Views
Last Modified: 2013-11-05
I have a list of computers. I need to find out logged on user or last logged on user on these computers.
Is there any automated way, instead of doing it manually one by one.
Most of the workstations are XP Sp3
0
Comment
Question by:dedri
  • 5
  • 4
9 Comments
 
LVL 9

Expert Comment

by:dustock
ID: 39621521
with pstools you can see who is logged on to a PC.  You still have to do it 1 by 1, but it could be automated with a program.

http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
0
 

Author Comment

by:dedri
ID: 39621549
any any program that can do it ?
or maybe any script
0
 
LVL 9

Assisted Solution

by:dustock
dustock earned 500 total points
ID: 39621553
I wrote a C# program that uses a foreach statement to do this.  I'm sure it could be scripted just as easily.
0
 

Author Comment

by:dedri
ID: 39621650
could you point me to any link where  I can download it and use the program
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 9

Assisted Solution

by:dustock
dustock earned 500 total points
ID: 39622177
You can just download the zip file.  Rename "LastLoggedOn" to "LastLoggedOn.exe" before you try to run it.  Also make sure you download PS Tools from the link I provided earlier.

A few things, everything in the admin area is driven by the config file, so those settings will save if you change them.  Make sure to check your path of the PS Tools before you try running it.  The "Ping PC First" will ping the PC before it attempts to see who is logged on, the "Show Local Logins" only will only show users that are locally logged in, the default shows local and remote users. The split char is the only item you have to click save to, all other items save automatically.

Also you can load multiple PC's at once by using the split character.  So the default is a semi-colon and if you put in the names like I have below it will enter the three names
pc1; pc2; pc3

You can change that split character if you want.

You can also clear the PC list and results list by double clicking those lists.
LastLoggedOn.zip
0
 

Author Comment

by:dedri
ID: 39624086
normally i generate a list of computers in a file one computer on a row.
Is there any way to provide this list( around 1000 computers) to program. Or any idea how to convert the content of this file to be comp1;comp2;comp3; etc...
0
 
LVL 9

Accepted Solution

by:
dustock earned 500 total points
ID: 39624121
What I done is copy that list and transpose the names in excel.  Then I copy that to a notepad or word document and replace the tab that is generated by excel with a semi-colon.  Maybe not the most efficient way, but it works.
0
 

Author Comment

by:dedri
ID: 39624479
perfect, that do the trick,
10x
0
 
LVL 9

Expert Comment

by:dustock
ID: 39624493
Cool glad its working.  That program may say not responding while running, I made it to run about 10-20 PC's at most.  You may want to break your list up into smaller chunk and copy the data out.
0

Featured Post

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Know what services you can and cannot, should and should not combine on your server.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now