i try to get capacity of windows mount point S:\ContentVideo\work\VIDEO\Out\MPEG
original working string:
this return Capacity of Mount point.
my zabbix agent string:
zabbix mark my item as Unsupported =(
can anybody help with characters escaping, please?
original working string:
Code:
powershell -NoProfile -NoLogo -Command gwmi win32_volume^|where-object {$_.name -match “S:\\ContentVideo\\work\\VIDEO\\Out\\MPEG”}^| % { '{0,10}' -f $_.Capacity}
my zabbix agent string:
Code:
system.run["powershell.exe -NoProfile -NoLogo -Command gwmi win32_volume^|where-object {$_.name -match \"S:\\ContentVideo\\work\\VIDEO\\Out\\MPEG\"}^| % {'{0,10}' -f $_.Capacity}"]
can anybody help with characters escaping, please?