jamorlando
asked on
VBScript to return system model
Hi,
I need a quick VBScript to take the systeminfo command from command prompt, and return the value of the "System Model: " field.
Thanks,
Jamie
I need a quick VBScript to take the systeminfo command from command prompt, and return the value of the "System Model: " field.
Thanks,
Jamie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=imper
Set colSettings = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colSettings
Wscript.Echo objComputer.Model
Next