Solved

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

Posted on 2004-08-17
12
213 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
copyEndy  challenge 15 55
stringclean challenge 26 56
SUM 2 INTEGER ARRAYS INTO 1 10 58
Programatically extract date from website 8 0
Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

705 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

19 Experts available now in Live!

Get 1:1 Help Now