powershell -nologo -command "Get-WmiObject Win32_Volume -Property DeviceID,FreeSpace | foreach { $_.DeviceID }"
\\?\Volume{b442274e-0000-0000-0000-100000000000}\
\\?\Volume{8bb38cb3-655d-11e8-8811-fc3fdb8d518b}\
\\?\Volume{b442274e-0000-0000-0000-204000000000}\
\\?\Volume{8bb38bdf-655d-11e8-8811-fc3fdb8d518b}\
\\?\Volume{8bb38c95-655d-11e8-8811-fc3fdb8d518b}\
\\?\Volume{56c300c0-63ca-11e8-880f-fc3fdb8d518b}\
powershell -nologo -command "Get-WmiObject Win32_Volume -Property DeviceID,FreeSpace | foreach { $_.FreeSpace }"
642564096
1053147136
23920513024
1058435072
1058435072
386035712
powershell -nologo -command "Get-WmiObject Win32_Volume -Property DeviceID,FreeSpace | where-object { $_.DeviceID -eq '\\?\Volume{b442274e-0000-0000-0000-100000000000}\' } | foreach { $_.FreeSpace }"
UserParameter=get.free.space.vol[*],powershell -nologo -command "Get-WmiObject Win32_Volume -Property DeviceID,FreeSpace | where-object { $_.DeviceID -eq '$1' } | foreach { $_.FreeSpace }"
#test from agent
cd c:\zabbix
zabbix_agentd.exe -c zabbix_agentd.conf -t get.free.space.vol[\\?\Volume{b442274e-0000-0000-0000-100000000000}\]
No comments:
Post a Comment