![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Microsoft Windows xp error all errors and bugs related to Microsoft winxp error |
![]() |
|
how do I determine what processor and RAM I have using the command line?
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
I was hoping there might be a Windows command for this, just like how I can query the registry on any computer on my network, perhaps I can query a hardware registry on any computer on my network? (I do not want a solution that I have to buy separately, I will be using the command line version to write a script to manage this type of information from my computer on my corporate network. We're on a tight budget and I like being creative.) |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
Dim objWMIService, objComputer, colComputer Dim strLogonUser, strComputer Set objFSO = CreateObject("Scripting.FileSystemObject") Set objOutput = objFSO.CreateTextFile("C:\Output.txt") aryServers = Array("Computer1", "Server2") 'repeat as needed For Each strComputer In aryServers 'Repeat this loop per system '=========Get RAM info Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonat e}!\\" _ & strComputer & "\root\cimv2") Set colComputer = objWMIService.ExecQuery("Select * from Win32_ComputerSystem") For Each objComputer In colComputer objOutput.WriteLine strComputer & " has " & objComputer.TotalPhysicalMemory & " total RAM installed." Next '=========End RAM query '=========Get processor info Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonat e}!\\" _ & strComputer & "\root\cimv2") Set colComputer = objWMIService.ExecQuery("Select * from Win32_Processor") For Each objComputer In colComputer objOutput.WriteLine strComputer & " has a " & objComputer.Name & " installed." Next '=========End processor query objOutput.WriteLine Next objOutput.Close set objOutput=Nothing Set objFSO=Nothing Set objWMIService=Nothing WScript.Quit |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|