Skip to main content

HDD Info Retrieval

Summary

This document retrieves useful disk drive information and saves it to a CSV file on the endpoint for client ingestion. It is an agnostic stack implementation of EPM - Disk - Agnostic - Get-DiskInfo.

Example Agent Procedure Log

TimeProcedureStatusUser
1:00:40 pm 5-Oct-22HDD Info RetrievalSuccess THENprovaltech.com/dan.hicks
1:00:40 pm 5-Oct-22HDD Info Retrieval-0002Drive Reporting Complete. See GetLogs/StackLogs/DriveReport.csv for details.provaltech.com/dan.hicks
1:00:39 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)Success THENprovaltech.com/dan.hicks
1:00:38 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)-0016Powershell command complete. Results returned to global variable #global:psresult# and saved in Agent's Documents tab of server.provaltech.com/dan.hicks
1:00:38 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)-0016Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/121486040513998/GetFiles/../docs/psoutput.txt with the new contents from c:/provaltech/psoutput.txt in THEN step 3.provaltech.com/dan.hicks
12:59:35 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)-0011Executing 64-bit Powershell command as System: "" -command "$driveInfo = %ProgramData%/_automation/StackContent/DriveReporting/Get-DiskInfo.ps1; $driveinfo.DiskDriveSelect-Object FriendlyName, Model, SerialNumber, BusType, MediaType, HealthStatus, Size
12:59:35 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)-0013Sending output to global variable.provaltech.com/dan.hicks
12:59:35 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)-0008Custom commands detected as $driveInfo = %ProgramData%/_automation/StackContent/DriveReporting/Get-DiskInfo.ps1; $driveinfo.DiskDriveSelect-Object FriendlyName, Model, SerialNumber, BusType, MediaType, HealthStatus, Size
12:59:35 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)-0003No powershell file variable detected.provaltech.com/dan.hicks
12:59:27 pm 5-Oct-22Execute Powershell Command (64-bit, Run As System)-0002Powershell is present.provaltech.com/dan.hicks
12:59:16 pm 5-Oct-22Execute Powershell CommandSuccess THENprovaltech.com/dan.hicks
12:59:15 pm 5-Oct-22Execute Powershell Command-0011Powershell command completed!provaltech.com/dan.hicks
12:59:06 pm 5-Oct-22Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Type Directory -Path %ProgramData%/_automation/StackContent -Name DriveReporting -Force -ErrorAction SilentlyContinue" ""provaltech.com/dan.hicks
12:59:06 pm 5-Oct-22Execute Powershell Command-0010Not sending output to variable.provaltech.com/dan.hicks
12:59:06 pm 5-Oct-22Execute Powershell Command-0008New command variable is: -Command "New-Item -Type Directory -Path %ProgramData%/_automation/StackContent -Name DriveReporting -Force -ErrorAction SilentlyContinue"provaltech.com/dan.hicks
12:59:06 pm 5-Oct-22Execute Powershell Command-0008Custom commands detected as New-Item -Type Directory -Path %ProgramData%/_automation/StackContent -Name DriveReporting -Force -ErrorAction SilentlyContinueprovaltech.com/dan.hicks
12:58:57 pm 5-Oct-22Execute Powershell Command-0002Powershell is present.provaltech.com/dan.hicks
12:58:46 pm 5-Oct-22Run Now - HDD Info RetrievalAdmin provaltech.com/dan.hicks scheduled procedure Run Now - HDD Info Retrieval to run at Oct 5 2022 12:58 PMprovaltech.com/dan.hicks

Dependencies

EPM - Disk - Agnostic - Get-DiskInfo

Process

This procedure runs Get-DiskInfo and creates a CSV file with commonly requested values.

Output

GetFile: StackContent/DiskReport.csv
Endpoint: %ProgramData%/_automation/StackContent/DiskReport/DiskReport.csv