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
Wednesday, 22 August 2007
Vbscript get model of your server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment