Solved

wmic for another box

Posted on 2011-02-15
4
513 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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks very much.
0
 
LVL 6

Expert Comment

by:LHT_ST
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
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.

743 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