Solved

wmic for another box

Posted on 2011-02-15
4
525 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

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

Suggested Solutions

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 download and install the SARDU utility on Windows 8, without downloading adware.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

929 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

10 Experts available now in Live!

Get 1:1 Help Now