?
Solved

wmic for another box

Posted on 2011-02-15
4
Medium Priority
?
561 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
[X]
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
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
LHT_ST earned 1600 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 33

Assisted Solution

by:PowerEdgeTech
PowerEdgeTech earned 400 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Upper back Pain: My back hurt for months. Upper back, mostly my neck, spine and across my shoulder blades. I was getting headaches too, that felt like they were caused by tension in my shoulders, but now I feel fine! I'm sharing this hoping someone…
pc, laptop  monitor connection configurations
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.
Suggested Courses

762 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