Hardware Inventory 
Author Message
 Hardware Inventory

Hello, colleagues...
Thanks a lot for posting scripts how to collect SoftWare Inventory...
Is there something for HardWare?
At least to "check" Processors speed, memory anf HDD capacity on all PCs in
a domain?
Thank you.


Sat, 30 Jul 2005 18:57:46 GMT  
 Hardware Inventory
Hi,

If you use Windows 2000/XP or are ready to install Wmi on
Nt, you should use it. check the wmi newsgroup.
Hope it helps;
if you need examples, download the scriptomatic from ms
site.

Bruno

Quote:
>-----Original Message-----
>Hello, colleagues...
>Thanks a lot for posting scripts how to collect SoftWare
Inventory...
>Is there something for HardWare?
>At least to "check" Processors speed, memory anf HDD

capacity on all PCs in
Quote:
>a domain?
>Thank you.

>.



Sat, 30 Jul 2005 23:28:40 GMT  
 Hardware Inventory
  You can get drive sizes with FileSystemObject. Processor speed,
I think, is in the Registry on NT; not available on 9x.
  For a script that demonstrates getting all installed hardware on 9x:
http://www.jsware.net/jsware/scripts.html
  (see the sysinfo scripts)
    The script goes through the Registry and gets a list of hardware, the
same
as you would see in Device Manager. I imagine a similar script could
be written for NT but it would need to read HKEY_PERFORMANCE_DATA.

--
--

Quote:
> Hello, colleagues...
> Thanks a lot for posting scripts how to collect SoftWare Inventory...
> Is there something for HardWare?
> At least to "check" Processors speed, memory anf HDD capacity on all PCs
in
> a domain?
> Thank you.



Sat, 30 Jul 2005 23:46:47 GMT  
 Hardware Inventory

Quote:

> Hello, colleagues...
> Thanks a lot for posting scripts how to collect SoftWare Inventory...
> Is there something for HardWare?
> At least to "check" Processors speed, memory anf HDD capacity on all PCs in
> a domain?

Hi

For HW inventory to a csv file using WMI from VBScript, in the quickFIND field,
search for:

poor mans sms

at Win32 Scripting [Clarence Washington]
http://cwashington.netreach.net

for a good example of this written by Steve Pyatt.

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and a ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Sun, 31 Jul 2005 01:22:26 GMT  
 Hardware Inventory
All from ScriptoMatic

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from
Win32_ComputerSystem",,48)
For Each objItem in colItems
    Wscript.Echo "AdminPasswordStatus: " & objItem.AdminPasswordStatus
    Wscript.Echo "AutomaticResetBootOption: " &
objItem.AutomaticResetBootOption
    Wscript.Echo "AutomaticResetCapability: " &
objItem.AutomaticResetCapability
    Wscript.Echo "BootOptionOnLimit: " & objItem.BootOptionOnLimit
    Wscript.Echo "BootOptionOnWatchDog: " & objItem.BootOptionOnWatchDog
    Wscript.Echo "BootROMSupported: " & objItem.BootROMSupported
    Wscript.Echo "BootupState: " & objItem.BootupState
    Wscript.Echo "Caption: " & objItem.Caption
    Wscript.Echo "ChassisBootupState: " & objItem.ChassisBootupState
    Wscript.Echo "CreationClassName: " & objItem.CreationClassName
    Wscript.Echo "CurrentTimeZone: " & objItem.CurrentTimeZone
    Wscript.Echo "DaylightInEffect: " & objItem.DaylightInEffect
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "Domain: " & objItem.Domain
    Wscript.Echo "DomainRole: " & objItem.DomainRole
    Wscript.Echo "FrontPanelResetStatus: " & objItem.FrontPanelResetStatus
    Wscript.Echo "InfraredSupported: " & objItem.InfraredSupported
    Wscript.Echo "InitialLoadInfo: " & objItem.InitialLoadInfo
    Wscript.Echo "InstallDate: " & objItem.InstallDate
    Wscript.Echo "KeyboardPasswordStatus: " & objItem.KeyboardPasswordStatus
    Wscript.Echo "LastLoadInfo: " & objItem.LastLoadInfo
    Wscript.Echo "Manufacturer: " & objItem.Manufacturer
    Wscript.Echo "Model: " & objItem.Model
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "NameFormat: " & objItem.NameFormat
    Wscript.Echo "NetworkServerModeEnabled: " &
objItem.NetworkServerModeEnabled
    Wscript.Echo "NumberOfProcessors: " & objItem.NumberOfProcessors
    Wscript.Echo "OEMLogoBitmap: " & objItem.OEMLogoBitmap
    Wscript.Echo "OEMStringArray: " & objItem.OEMStringArray
    Wscript.Echo "PauseAfterReset: " & objItem.PauseAfterReset
    Wscript.Echo "PowerManagementCapabilities: " &
objItem.PowerManagementCapabilities
    Wscript.Echo "PowerManagementSupported: " &
objItem.PowerManagementSupported
    Wscript.Echo "PowerOnPasswordStatus: " & objItem.PowerOnPasswordStatus
    Wscript.Echo "PowerState: " & objItem.PowerState
    Wscript.Echo "PowerSupplyState: " & objItem.PowerSupplyState
    Wscript.Echo "PrimaryOwnerContact: " & objItem.PrimaryOwnerContact
    Wscript.Echo "PrimaryOwnerName: " & objItem.PrimaryOwnerName
    Wscript.Echo "ResetCapability: " & objItem.ResetCapability
    Wscript.Echo "ResetCount: " & objItem.ResetCount
    Wscript.Echo "ResetLimit: " & objItem.ResetLimit
    Wscript.Echo "Roles: " & objItem.Roles
    Wscript.Echo "Status: " & objItem.Status
    Wscript.Echo "SupportContactDescription: " &
objItem.SupportContactDescription
    Wscript.Echo "SystemStartupDelay: " & objItem.SystemStartupDelay
    Wscript.Echo "SystemStartupOptions: " & objItem.SystemStartupOptions
    Wscript.Echo "SystemStartupSetting: " & objItem.SystemStartupSetting
    Wscript.Echo "SystemType: " & objItem.SystemType
    Wscript.Echo "ThermalState: " & objItem.ThermalState
    Wscript.Echo "TotalPhysicalMemory: " & objItem.TotalPhysicalMemory
    Wscript.Echo "UserName: " & objItem.UserName
    Wscript.Echo "WakeUpType: " & objItem.WakeUpType
Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_DiskDrive",,48)
For Each objItem in colItems
    Wscript.Echo "Availability: " & objItem.Availability
    Wscript.Echo "BytesPerSector: " & objItem.BytesPerSector
    Wscript.Echo "Capabilities: " & objItem.Capabilities
    Wscript.Echo "CapabilityDescriptions: " & objItem.CapabilityDescriptions
    Wscript.Echo "Caption: " & objItem.Caption
    Wscript.Echo "CompressionMethod: " & objItem.CompressionMethod
    Wscript.Echo "ConfigManagerErrorCode: " & objItem.ConfigManagerErrorCode
    Wscript.Echo "ConfigManagerUserConfig: " &
objItem.ConfigManagerUserConfig
    Wscript.Echo "CreationClassName: " & objItem.CreationClassName
    Wscript.Echo "DefaultBlockSize: " & objItem.DefaultBlockSize
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "DeviceID: " & objItem.DeviceID
    Wscript.Echo "ErrorCleared: " & objItem.ErrorCleared
    Wscript.Echo "ErrorDescription: " & objItem.ErrorDescription
    Wscript.Echo "ErrorMethodology: " & objItem.ErrorMethodology
    Wscript.Echo "Index: " & objItem.Index
    Wscript.Echo "InstallDate: " & objItem.InstallDate
    Wscript.Echo "InterfaceType: " & objItem.InterfaceType
    Wscript.Echo "LastErrorCode: " & objItem.LastErrorCode
    Wscript.Echo "Manufacturer: " & objItem.Manufacturer
    Wscript.Echo "MaxBlockSize: " & objItem.MaxBlockSize
    Wscript.Echo "MaxMediaSize: " & objItem.MaxMediaSize
    Wscript.Echo "MediaLoaded: " & objItem.MediaLoaded
    Wscript.Echo "MediaType: " & objItem.MediaType
    Wscript.Echo "MinBlockSize: " & objItem.MinBlockSize
    Wscript.Echo "Model: " & objItem.Model
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "NeedsCleaning: " & objItem.NeedsCleaning
    Wscript.Echo "NumberOfMediaSupported: " & objItem.NumberOfMediaSupported
    Wscript.Echo "Partitions: " & objItem.Partitions
    Wscript.Echo "PNPDeviceID: " & objItem.PNPDeviceID
    Wscript.Echo "PowerManagementCapabilities: " &
objItem.PowerManagementCapabilities
    Wscript.Echo "PowerManagementSupported: " &
objItem.PowerManagementSupported
    Wscript.Echo "SCSIBus: " & objItem.SCSIBus
    Wscript.Echo "SCSILogicalUnit: " & objItem.SCSILogicalUnit
    Wscript.Echo "SCSIPort: " & objItem.SCSIPort
    Wscript.Echo "SCSITargetId: " & objItem.SCSITargetId
    Wscript.Echo "SectorsPerTrack: " & objItem.SectorsPerTrack
    Wscript.Echo "Size: " & objItem.Size
    Wscript.Echo "Status: " & objItem.Status
    Wscript.Echo "StatusInfo: " & objItem.StatusInfo
    Wscript.Echo "SystemCreationClassName: " &
objItem.SystemCreationClassName
    Wscript.Echo "SystemName: " & objItem.SystemName
    Wscript.Echo "TotalCylinders: " & objItem.TotalCylinders
    Wscript.Echo "TotalHeads: " & objItem.TotalHeads
    Wscript.Echo "TotalSectors: " & objItem.TotalSectors
    Wscript.Echo "TotalTracks: " & objItem.TotalTracks
    Wscript.Echo "TracksPerCylinder: " & objItem.TracksPerCylinder
Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor",,48)
For Each objItem in colItems
    Wscript.Echo "AddressWidth: " & objItem.AddressWidth
    Wscript.Echo "Architecture: " & objItem.Architecture
    Wscript.Echo "Availability: " & objItem.Availability
    Wscript.Echo "Caption: " & objItem.Caption
    Wscript.Echo "ConfigManagerErrorCode: " & objItem.ConfigManagerErrorCode
    Wscript.Echo "ConfigManagerUserConfig: " &
objItem.ConfigManagerUserConfig
    Wscript.Echo "CpuStatus: " & objItem.CpuStatus
    Wscript.Echo "CreationClassName: " & objItem.CreationClassName
    Wscript.Echo "CurrentClockSpeed: " & objItem.CurrentClockSpeed
    Wscript.Echo "CurrentVoltage: " & objItem.CurrentVoltage
    Wscript.Echo "DataWidth: " & objItem.DataWidth
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "DeviceID: " & objItem.DeviceID
    Wscript.Echo "ErrorCleared: " & objItem.ErrorCleared
    Wscript.Echo "ErrorDescription: " & objItem.ErrorDescription
    Wscript.Echo "ExtClock: " & objItem.ExtClock
    Wscript.Echo "Family: " & objItem.Family
    Wscript.Echo "InstallDate: " & objItem.InstallDate
    Wscript.Echo "L2CacheSize: " & objItem.L2CacheSize
    Wscript.Echo "L2CacheSpeed: " & objItem.L2CacheSpeed
    Wscript.Echo "LastErrorCode: " & objItem.LastErrorCode
    Wscript.Echo "Level: " & objItem.Level
    Wscript.Echo "LoadPercentage: " & objItem.LoadPercentage
    Wscript.Echo "Manufacturer: " & objItem.Manufacturer
    Wscript.Echo "MaxClockSpeed: " & objItem.MaxClockSpeed
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "OtherFamilyDescription: " & objItem.OtherFamilyDescription
    Wscript.Echo "PNPDeviceID: " & objItem.PNPDeviceID
    Wscript.Echo "PowerManagementCapabilities: " &
objItem.PowerManagementCapabilities
    Wscript.Echo "PowerManagementSupported: " &
objItem.PowerManagementSupported
    Wscript.Echo "ProcessorId: " & objItem.ProcessorId
    Wscript.Echo "ProcessorType: " & objItem.ProcessorType
    Wscript.Echo "Revision: " & objItem.Revision
    Wscript.Echo "Role: " & objItem.Role
    Wscript.Echo "SocketDesignation: " & objItem.SocketDesignation
    Wscript.Echo "Status: " & objItem.Status
    Wscript.Echo "StatusInfo: " & objItem.StatusInfo
    Wscript.Echo "Stepping: " & objItem.Stepping
    Wscript.Echo "SystemCreationClassName: " &
objItem.SystemCreationClassName
    Wscript.Echo "SystemName: " & objItem.SystemName
    Wscript.Echo "UniqueId: " & objItem.UniqueId
    Wscript.Echo "UpgradeMethod: " & objItem.UpgradeMethod
    Wscript.Echo "Version: " & objItem.Version
    Wscript.Echo "VoltageCaps: " & objItem.VoltageCaps
Next


Quote:
> Hello, colleagues...
> Thanks a lot for posting scripts how to collect SoftWare Inventory...
> Is there something for HardWare?
> At least to "check" Processors speed, memory anf HDD capacity on all PCs
in
> a domain?
> Thank you.



Sun, 07 Aug 2005 05:43:37 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Hardware and soft inventory ?

2. ADP inventory access from win2K

3. ADP inventory access from win2k

4. Inventory script

5. inventory outlook profiles

6. Determine Windows Version / Software Inventory

7. query servers for specific h/s-ware inventory ?

8. advice on inventory design

9. PC Inventory Script

10. Script to get software inventory...

11. Howto inventory applications with WMI?

12. vbscript for software inventory

 

 
Powered by phpBB® Forum Software