Link to home
Start Free TrialLog in
Avatar of anushahanna
anushahannaFlag for United States of America

asked on

wmic for another box

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.
ASKER CERTIFIED SOLUTION
Avatar of LHT_ST
LHT_ST

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of PowerEdgeTech
PowerEdgeTech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of anushahanna

ASKER

thanks very much.
Avatar of LHT_ST
LHT_ST

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.