Drive List Collection
Summary
This script polls for physical, non-removable drives with a capacity greater than 10GB and places the available drive letters in EPM - Disk - Custom Field - xPVAL Drive List.
Sample Run
Time | Action | Result | User |
---|---|---|---|
3:15:59 PM 1-Sep-22 | Drive List Collection | Success THEN | provaltech.com/dan.hicks |
3:15:59 PM 1-Sep-22 | Drive List Collection | C: | provaltech.com/dan.hicks |
3:15:59 PM 1-Sep-22 | Execute PowerShell Command | Success THEN | provaltech.com/dan.hicks |
3:15:59 PM 1-Sep-22 | Execute PowerShell Command-0012 | Results returned to global variable #global:psresult# and saved in Documents tab of server. | provaltech.com/dan.hicks |
3:15:59 PM 1-Sep-22 | Execute PowerShell Command-0011 | PowerShell command completed! | provaltech.com/dan.hicks |
3:15:51 PM 1-Sep-22 | Execute PowerShell Command-0011 | Executing PowerShell command: "((Get-Partition | Where-Object {($.DriveLetter -and $.Size -gt 10000000000) -and ($_.DiskPath -notmatch 'usb')} |
3:15:51 PM 1-Sep-22 | Execute PowerShell Command-0010 | Sending output to global variable. | provaltech.com/dan.hicks |
3:15:51 PM 1-Sep-22 | Execute PowerShell Command-0008 | New command variable is: -Command "((Get-Partition | Where-Object {($.DriveLetter -and $.Size -gt 10000000000) -and ($_.DiskPath -notmatch 'usb')} |
3:15:51 PM 1-Sep-22 | Execute PowerShell Command-0008 | Custom commands detected as: ((Get-Partition | Where-Object {($.DriveLetter -and $.Size -gt 10000000000) -and ($_.DiskPath -notmatch 'usb')} |
3:15:48 PM 1-Sep-22 | Execute PowerShell Command-0002 | PowerShell is present. | provaltech.com/dan.hicks |
3:15:39 PM 1-Sep-22 | Run Now - Drive List Collection | Admin provaltech.com/dan.hicks scheduled procedure Run Now - Drive List Collection to run at Sep 1, 2022, 3:15 PM | provaltech.com/dan.hicks |
Process
The script queries the endpoint for physical, non-removable drives with a capacity greater than 10GB.
Output
Agent Procedure Log
EPM - Disk - Custom Field - xPVAL Drive List