Computing.Net > Forums > Windows NT > Inventory computer s/n

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Inventory computer s/n

Reply to Message Icon

Name: squib
Date: May 6, 2005 at 11:56:27 Pacific
OS: NT 4.0 workstation
CPU/Ram: 866/128
Comment:

Im trying to get computer serial numbers from about 200 NT 4.0 workstations but cant seem to get my script to run against the NT boxes...it works fine running it against the XP stations we have....does anyone have a script that would do this?

squib



Sponsored Link
Ads by Google

Response Number 1
Name: Steve Dunn
Date: May 6, 2005 at 15:12:56 Pacific
Reply:

what do you mean by serial number?


0

Response Number 2
Name: squib
Date: May 6, 2005 at 15:45:42 Pacific
Reply:

Hi Steve,

I mean the computer serial number from the manufacturer....you can get it with WMI (IdentifyingNumber)...on an XP machine but it doesnt work on an NT box...same computer/manufacturer..

On Error Resume Next

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

arrComputers = Array("Computer_Name_Here")
For Each strComputer In arrComputers
WScript.Echo
WScript.Echo "=========================================="
WScript.Echo "Computer: " & strComputer
WScript.Echo "=========================================="

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystemProduct", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each objItem In colItems
WScript.Echo "Caption: " &
WScript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber


0

Response Number 3
Name: Dirty_Sanchez
Date: May 28, 2005 at 17:15:51 Pacific
Reply:

there are quite a few third party programs that can do this for you like asset tracker.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


WInnt4 domain v Win2k AD ... mouse help



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Inventory computer s/n

Extracting Make/Model of machine www.computing.net/answers/windows-nt/extracting-makemodel-of-machine/22780.html

Since when do PSX CDs destroy computers? www.computing.net/answers/windows-nt/since-when-do-psx-cds-destroy-computers/15167.html

Administrator Account www.computing.net/answers/windows-nt/administrator-account/4873.html