sorry I wish use a function like this
function GetResult(wmiClass,wmiField:string):string
SELECT wmiField FROM wmiClass
and next call this function passing myQuery for example GetResult(Win32_ComputerSystem,TotalPhysicalMemory) to obtain some value but I dont' undertand how can I do.
Search found 2 matches
- Wed Apr 08, 2015 7:50 am
- Forum: Open Source Nagios Projects
- Topic: Can't execute a Nagios plugin wmi for wql
- Replies: 4
- Views: 4034
- Tue Apr 07, 2015 4:35 am
- Forum: Open Source Nagios Projects
- Topic: Can't execute a Nagios plugin wmi for wql
- Replies: 4
- Views: 4034
Can't execute a Nagios plugin wmi for wql
i want to execute a wmi query passing only 2 parameter. For example please take a look at my vbs script below. In this example I want pass the first sql query parameter ("Select * from Win32_ComputerSystem") and the second parameter ("UserName"). I try it using the standard plugi...