Good day all,
I use a WMI script to retrieve Win32_Volume properties from a remote MS Cluster server, write the results to CSV and email to dept managers. I prefer the output options with Logparser and want to convert the script to the LP_Toolkit COM input but ran into a problem - how do I point this at a remote server??
logparser "SELECT Name,Capacity,MUL(PROPSUM(FreeSpace), 100) AS Percent INTO VolSpace.gif FROM Win32_Volume WHERE Name LIKE '%PSSTATIC%' GROUP BY Name" -i:COM -iProgID:LP_ToolKit.WMIQuery -charttype:Column3D -View -ChartTitle:"Volume Space" -categories:offSeeing that there is a "iCOMParams" parameter available I opened the VBP file with VisStudio2005 looking for a COMPUTER property to call to but didn't see one. I'm no VB programmer by any means but did see this string:
- Public Property ComputerName() As String
- Get
- ComputerName = mvarComputerName
- End Get
- Set(ByVal Value As String)
- mvarComputerName = Value
- End Set
- End Property
Then further down:
m_sFromEntity = FromEntitysComputer = mvarComputerNameoWMIService = GetObject("winmgmts:\\" & sComputer & "\root\cimv2")oClass = oWMIService.Get(m_sFromEntity)I need to manage the oWMIService string above. Any suggestions? Has anyone else used this class to query remote WMI properties? I thougt about giving this a stab myself and creating another VB function within the project, but when I opened it with VisStudio2005 there were many conversion errors so I think that path is screwed.
TIA!
-Greg