I would like to capture Processor information on each PC in the local network into a database for reference. This is part of a script to output information in the cmd window (for now it is fine) but only for the local machine that the script is run. Is there a way to access the network PC's winmgmts. Is there a way to pass administrator login information?
we use UNC, (\\My_Computer) does that make a difference?
On Error Resume 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
ETC.........
Next
we use UNC, (\\My_Computer) does that make a difference?
On Error Resume 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
ETC.........
Next