SystemName = "localhost" set tmpObj = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & SystemName & "\root\cimv2").InstancesOf ("Win32_ComputerSystem") for each tmpItem in tmpObj MakeModel = trim(tmpItem.Manufacturer) & " " & trim(tmpItem.Model) next Set tmpObj = Nothing: Set tmpItem = Nothing msgbox MakeModel
Discussion of tips, tricks, and other useful information about technology. May include topics on software applications, hardware, and operating systems.
Thursday, May 16, 2013
VBS Script to pull Computer/Server Model information
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment