Jump to content

Recommended Posts

Posted

Hello All,

 

I just need your help. Is there any way can find a serial number other than looking at the bottom of your machine??

 

Thanks

 

LC

Posted

This will do it -http://www.edugeek.net/forums/scripts/32287-inventory-your-network.html

 

It can dump all the serial numbers of all your conmputers in a csv file

Posted (edited)

'On Error Resume Next
comps="c:\computers.txt"
serials="c:\serials.txt"

set fso=createobject("scripting.filesystemobject")
set objComputersTxt=fso.opentextfile(comps,1)
set objSerialsTxt = fso.OpenTextFile(serials,2,True)

do while not objComputersTxt.atendofstream
   strComputer = objComputersTxt.readline
       Set objWMIService = GetObject("winmgmts:\\" _
       & strComputer& "\root\CIMV2") 
   Set colItems = objWMIService.ExecQuery( _
       "SELECT * FROM Win32_BIOS") 
   For Each objItem in colItems 
       Wscript.Echo "Name: "& strComputer & " SerialNumber: "& objItem.SerialNumber
       objSerialsTxt.WriteLine "Name: "& strComputer & " SerialNumber: "& objItem.SerialNumber
       set objItem=Nothing
       next
   loop

objComputersTxt.close
objSerialsTxt.close

set objComputersTxt=Nothing
set objSerialsTxt=Nothing
set fso=nothing

 

Try this script, put in the computers you want to read the serial number into computers.txt and it will save them.

 

Make sure the computers are on, as it will hang if you are grabbing a few for example.

Edited by mullet_man
Posted

If the serial number is also stored in the bios then the methods above will work if it's not then I'm afraid you'll have to visit them and look for it.

 

Ben

Posted (edited)
If the serial number is also stored in the bios then the methods above will work if it's not then I'm afraid you'll have to visit them and look for it.

 

Ben

 

i was going to say the same, if there in bios your fine other than that get your pen and paper and a pair of legs.

 

Maybe try using a tool called open audit (completely open source) so its free , thats what our network technician uses, then whatever it misses out go round on foot and get the details.

Edited by plexer
  • Thanks 1
Posted

I split our site up a couple of years back between the three of us and we noted all hardware and serials in our particular area. It was a useful exercise as it allowed us to get into some locations we had never been in for a while as well as providing an accurate overview of the school network.

 

I'm planning on doing something similar this year but mapping all data points across the school in a system identifying which points are connected to which switch etc.

 

Spiceworks - Free Network Monitoring Software for Network Management will also generate an inventory of your whole school, including printers / switches etc.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...