Solved

Script that takes list of Machine Names and returns last logon user from WINS

Posted on 2004-08-17
12
232 Views
Last Modified: 2010-04-17
The title is basically what I am looking for.  We are doing a domain migration and we get a list of machines that have failed/succeded and need to be able to find out who was last logged in to the computer.  We are currently pulling up WINS and manually typing in the machine names for returns, but hopefully somebody has or can write a script that will take a text file of computer names and return a text file with a list of the computer names matched to the last logon user.  VBScript would probably be the easiest to work with, but any language that I can somewhat decipher will work.....

Thanks.
0
Comment
Question by:Lobo_NT
  • 5
  • 5
12 Comments
 
LVL 3

Expert Comment

by:kumvjuec
ID: 11829919
0
 
LVL 3

Expert Comment

by:kumvjuec
ID: 11829935
0
 

Author Comment

by:Lobo_NT
ID: 11830255
Thanks for the info kumvjuec.  I don't see were the netsh command can take a list of computer names and pipe out the WINS information for those computers to a file?
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 3

Expert Comment

by:kumvjuec
ID: 11830303
you have to do that part in your batch file, or script. redirecting the output, or appending to the file is easy.
For redirecting the output to a file (for append) you can simple use

dir >> file.txt

the >> operator appends the output of dir command to the file. checking out how to do the read thing :)
0
 

Author Comment

by:Lobo_NT
ID: 11830339
Yes, I know how to pipe output to a file, but what is the netsh command to get the list from a text file and return WINS information?
0
 
LVL 3

Expert Comment

by:kumvjuec
ID: 11830356
can you tell me how do you manually do the stuff for getting user information
0
 

Author Comment

by:Lobo_NT
ID: 11830398
Open WINS, right click on Active Registrations, click on filter records matching this IP address, type in the IP address and the information on that IP is displayed.  [3h] Messenger typically has the Username of the person who last logged into the computer.
0
 
LVL 3

Expert Comment

by:kumvjuec
ID: 11835713
http://support.microsoft.com/?kbid=260324

See if that is similar to what you want
0
 

Author Comment

by:Lobo_NT
ID: 12044899
Question can be closed.  I worked out the solution to the problem on my own.  Although kumvjuec tried, his answers were not what I needed, that's why I didn't award him any points.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 12088052
PAQed - no points refunded (of 330)

GhostMod
Community Support Moderator
0
 

Author Comment

by:Lobo_NT
ID: 12088098
What kinda crap is this?  I ask a question, don't get the answer and lose points?  
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 172
Controlled Assessment GCSE - desperate help needed 4 84
Advice in Xamarin 21 78
Help Required 2 29
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

813 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

11 Experts available now in Live!

Get 1:1 Help Now