Operating System - Microsoft
1748128 Members
4035 Online
108758 Solutions
New Discussion юеВ

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 3
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.