Skip to main content

Get-PST Info

Summary

This procedure gathers the name, location, and size of all the PST files on a machine and stores them in a log. If only one is present, it stores the location in the configuration file; if multiple are present, it updates the configuration file to advise checking the log.

Example Agent Procedure Log

TimeActionStatusUser
8:27:49 am 17-Aug-23Get-PST InfoSuccess THENderek.joniak
8:27:49 am 17-Aug-23Get-PST Info-0002Success THENderek.joniak
8:27:49 am 17-Aug-23Get-PST Info-0002Log Created: %ProgramData%/_automation/AgentProcedure/GetPSTInfoderek.joniak
8:27:49 am 17-Aug-23Get-PST Info-0001Success THENderek.joniak
8:27:49 am 17-Aug-23Get-PST Info-0001PST: Multiple PST files detected. See log.derek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)Success THENderek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0001Success THENderek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0002Success THENderek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0011Success THENderek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0014Success THENderek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0015Success THENderek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0016Success THENderek.joniak
8:27:48 am 17-Aug-23Execute 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.derek.joniak
8:27:48 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0016Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/910544681671025/GetFiles/../docs/psoutput.txt with the new contents from c:/Proval/psoutput.txt in THEN step 3.derek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0011Executing 64-bit Powershell command as System: "" -command "%ProgramData%/_automation/AgentProcedure/GetPSTInfo/Get-PSTInfo.ps1 " >"c:/Proval/psoutputtmp.txt"derek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0012Success THENderek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0013Success THENderek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0013Sending output to global variable.derek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0003Success ELSEderek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0008Success THENderek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0009Success ELSEderek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0010Success ELSEderek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0008Custom commands detected as %ProgramData%/_automation/AgentProcedure/GetPSTInfo/Get-PSTInfo.ps1derek.joniak
8:27:08 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0003No powershell file variable detected.derek.joniak
8:27:06 am 17-Aug-23Execute Powershell Command (64-bit, Run As System)-0002Powershell is present.derek.joniak
8:27:05 am 17-Aug-23Get-PST InfoDeploying PowerShell script to endpointderek.joniak
8:27:05 am 17-Aug-23Execute Powershell CommandSuccess THENderek.joniak
8:27:05 am 17-Aug-23Execute Powershell Command-0001Success THENderek.joniak
8:27:05 am 17-Aug-23Execute Powershell Command-0002Success THENderek.joniak
8:27:05 am 17-Aug-23Execute Powershell Command-0011Success THENderek.joniak
8:27:05 am 17-Aug-23Execute Powershell Command-0012Success ELSEderek.joniak
8:27:05 am 17-Aug-23Execute Powershell Command-0011Powershell command completed!derek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name GetPSTInfo" ""derek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0009Success THENderek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0010Success ELSEderek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0010Not sending output to variable.derek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0007Success THENderek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0008Success THENderek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0008New command variable is: -Command "New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name GetPSTInfo"derek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0008Custom commands detected as New-Item -Type Directory -Path $env:ProgramData/_automation/AgentProcedure -name GetPSTInfoderek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0003Success THENderek.joniak
8:27:01 am 17-Aug-23Execute Powershell Command-0004Success ELSEderek.joniak
8:26:57 am 17-Aug-23Execute Powershell Command-0002Powershell is present.derek.joniak
8:26:56 am 17-Aug-23Get-PST InfoCreating folder for procedurederek.joniak
8:26:49 am 17-Aug-23Run Now - Get-PST InfoAdmin derek.joniak scheduled procedure Run Now - Get-PST Info to run at Aug 17 2023 9:26 AMderek.joniak

Dependencies

Proval Documentation

Output

Procedure log files and computer log