Solved

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

Posted on 2004-08-17
12
224 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

867 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

15 Experts available now in Live!

Get 1:1 Help Now