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
Solved

wmic for another box

Posted on 2011-02-15
4
543 Views
Last Modified: 2012-05-11
is it possible to run
wmic bios get serialnumber
for another server?

the goal is to get a bunch of serial numbers without having to log into each machine.
0
Comment
Question by:anushahanna
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
LHT_ST earned 400 total points
ID: 34897918
i created a batch file (named serial) with the following in it

wmic /node:%1 bios get serialnumber

then if i need it i simply open up a cmd prompt and enter serial (SERVERNAME)

providing your in the administrators group for the server it should come back fine

if you need it you could change the batch file to do it automatically if you have a .txt file with the names or ip's of all your servers
0
 
LVL 32

Assisted Solution

by:PowerEdgeTech
PowerEdgeTech earned 100 total points
ID: 34897967
I see this is in the XP zone, but in Windows 7, you must have Windows Management Instrumentation (WMI) added to your Windows Firewall exception list.  You can do this using Group Policy, or you can run the following on the Windows 7 box:

netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34898039
thanks very much.
0
 
LVL 6

Expert Comment

by:LHT_ST
ID: 34898268
no worries

a way of doing it quicker


for /f "tokens=1" %%1 in (C:\servers.txt) DO wmic /node:%%1 bios get serialnumber >> c:\Serial.Log

servers.txt is simply a list of your servernames and afterwards you will end up with a list of serial numbers in c:\serial.logm it can be adapted to output the servername in the serial.log as well if needed.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
How can this article save you time AND money?  In just a few minutes you may discover something you didn't know existed that is easy enough for you to fix yourself!
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

809 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