I showed you that in my original reply. I created an array named strComputers of which each element in that array was the name of a computer.
For each element of strcomputers, you assigned strComputer to the current element of the array that you are processing. Regards, Michael B. Smith MCITP:EM/MCSE/Exchange MVP http://TheEssentialExchange.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 5:58 PM To: NT System Admin Issues Subject: RE: WMI Query If strComputer can't be a muti-valued property, how would you query mutiple servers? Original Message: ----------------- From: Michael B. Smith [EMAIL PROTECTED] Date: Tue, 8 Jul 2008 17:26:59 -0400 To: ntsysadmin@lyris.sunbelt-software.com Subject: RE: WMI Query Well, it won't work. strComputer can't be a multi-valued property in WMI. Also, this particular line has obvious problems: Wscript.Echo "Name: TSM & objItem.Name Regards, Michael B. Smith MCITP:EM/MCSE/Exchange MVP http://TheEssentialExchange.com -----Original Message----- From: Rod Trent [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 5:22 PM To: NT System Admin Issues Subject: RE: WMI Query What info are you looking to retrieve? Are you saying this does or doesn't work? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 5:12 PM To: NT System Admin Issues Subject: WMI Query Looking for help with WMI query for an application (TSM). On Error Resume Next strComputer = "Server1 Server2 Server3" Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_ProgramGroup",,48) For Each objItem in colItems Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "Description: " & objItem.Description Wscript.Echo "GroupName: " & objItem.GroupName Wscript.Echo "Name: TSM & objItem.Name Wscript.Echo "SettingID: " & objItem.SettingID Wscript.Echo "UserName: " & objItem.UserName Next Can anyone help? Thanks, Mike -------------------------------------------------------------------- mail2web LIVE - Free email based on MicrosoftR Exchange technology - http://link.mail2web.com/LIVE ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~ ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~ ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~ -------------------------------------------------------------------- mail2web.com - MicrosoftR Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~ ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~