Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to get serialnumber for 200 PCs using IP-Addr

SOLVED
Go to solution
Basheer_2
Trusted Contributor

Need to get serialnumber for 200 PCs using IP-Addr

Hello,

1) is it possible to get serialnumber for 200 Servers remotely from my PC using IP-ADDR

(I dont want to login to each one and run
wmic bios get serialnumber
or run wscript

2) How do I get serialnumbers for 4 blade enclosures (each has 16 blades). I need serial number for each blade.


3 REPLIES
Edgar Zapata
Esteemed Contributor
Solution

Re: Need to get serialnumber for 200 PCs using IP-Addr

Hi Basheer,

You don't need to login to every computer.
Just get all of either IP addresses or hostnames for all servers in a let's say serverlist.txt file, then type the following in a .cmd file and run the .cmd file from your PC:

for /f %%a in (serverlist.txt) do (
echo %%a >> outputfile.txt
wmic /node:%%a bios get serialnumber >> outputfile.txt
)

Hope it's what you're looking for.

Regards.
Basheer_2
Trusted Contributor

Re: Need to get serialnumber for 200 PCs using IP-Addr

Thanks a lot Edgar.

I added /USER and /PASSWORD arguments for each machine.

Since we have 3 different domains.

I am part of the all 3 domains. I dont have Administraor password. BUt my usrname has the admin preivlieges.


what is the syntax for specifying the domain and user
Edgar Zapata
Esteemed Contributor

Re: Need to get serialnumber for 200 PCs using IP-Addr

Hi Basheer,

You'll have to use different files (list of servers) for each domain.
I'll do it this way:

start - run - cmd
runas /u:DOMAIN1\user1 findSN.cmd
runas /u:DOMAIN2\user2 findSN.cmd
and so forth.
The findSN.cmd file should include the wmic along with the node, bios, get and serialnumber switches within the FOR loop.

Hope it helps.
Edgar.