Get-VPASAllPSMSessions


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL PSM SESSIONS


Description:

USE THIS FUNCTION TO GET ALL PSM SESSIONS


Syntax:

Get-VPASAllPSMSessions [[-token] <Hashtable>] [[-confirm]] [<CommonParameters>]


Parameters:

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: 1
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

-confirm [<SwitchParameter>]
Skip the confirmation prompt to continue regardless on the size of the environment

Required: false
Position: 2
Default value: False
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$AllPSMSessionsJSON = Get-VPASAllPSMSessions


Outputs:

If successful:
{
         "Recordings": [
                 ...
                 {
                         "SessionID": "36_102",
                         "SessionGuid": "kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89",
                         "SafeName": "PSMRecordings",
                         "FolderName": "Root",
                         "IsLive": false,
                         "FileName": "kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.session",
                         "Start": 1712111269,
                         "End": 1712111328,
                         "Duration": 59,
                         "User": "vadim@vman.com",
                         "RemoteMachine": "192.168.111.111",
                         "ProtectionDate": 0,
                         "ProtectedBy": "",
                         "ProtectionEnabled": false,
                         "AccountUsername": "vmanda",
                         "AccountPlatformID": "VadimWindowsDomain",
                         "AccountAddress": "vman.com",
                         "PIMSuCommand": "",
                         "PIMSuCWD": "",
                         "ConnectionComponentID": "PSM-RDP",
                         "PSMRecordingEntity": "SessionRecording",
                         "TicketID": "",
                         "FromIP": "192.168.222.222",
                         "Protocol": "RDP",
                         "Client": "RDP",
                         "RiskScore": -1,
                         "Severity": "",
                         "IncidentDetails": null,
                 "RawProperties": "@{Address=vman.com; ConnectionComponentID=PSM-RDP; DeviceType=Operating System; EntityVersion=1.0; ExpectedRecordingsList=kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.WIN.txt,kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.VID.avi; PSMClientApp=mstsc.exe; PSMPasswordID=9; PSMProtocol=RDP; PSMRecordingEntity=SessionRecording; PSMRemoteMachine=192.168.111.111; PSMSafeID=68; PSMSourceAddress=192.168.222.222; PSMStartTime=1712111269; PSMStatus=Final; PSMVaultUserName=vadim@vman.com; PolicyID=VadimWindowsDomain; ProviderID=PSMApp_VmanCon01; UserName=vmanda; PSMEndTime=1712111328; ActualRecordings=kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.WIN.txt;187,kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.VID.avi;188; Safe=PSMRecordings; Folder=Root; Name=kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.session}",
                         "RecordingFiles": " ",
                         "RecordedActivities": "",
                         "VideoSize": 1772412,
                         "TextSize": 3048,
                         "DetailsUrl": "recordingdetails.aspx?Data=qjwhefjkhwr789439rt8h4j3fj943mh093cmfcj8kfq43kjf093jmf03j0cfk83cmd587yn93f874y9t7473f734y875nt475"
                 },
                 {
                         "SessionID": "36_103",
                         "SessionGuid": "kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89",
                         "SafeName": "PSMRecordings",
                         "FolderName": "Root",
                         "IsLive": false,
                         "FileName": "kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.session",
                         "Start": 1712100199,
                         "End": 1712100250,
                         "Duration": 51,
                         "User": "vadim@vman.com",
                         "RemoteMachine": "192.168.111.111",
                         "ProtectionDate": 0,
                         "ProtectedBy": "",
                         "ProtectionEnabled": false,
                         "AccountUsername": "vmanda",
                         "AccountPlatformID": "VadimWindowsDomain",
                         "AccountAddress": "vman.com",
                         "PIMSuCommand": "",
                         "PIMSuCWD": "",
                         "ConnectionComponentID": "PSM-RDP",
                         "PSMRecordingEntity": "SessionRecording",
                         "TicketID": "",
                         "FromIP": "192.168.222.222",
                         "Protocol": "RDP",
                         "Client": "RDP",
                         "RiskScore": -1,
                         "Severity": "",
                         "IncidentDetails": null,
                 "RawProperties": "@{Address=vman.com; ConnectionComponentID=PSM-RDP; DeviceType=Operating System; EntityVersion=1.0; ExpectedRecordingsList=kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.WIN.txt,kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.VID.avi; PSMClientApp=mstsc.exe; PSMPasswordID=9; PSMProtocol=RDP; PSMRecordingEntity=SessionRecording; PSMRemoteMachine=192.168.111.111; PSMSafeID=68; PSMSourceAddress=192.168.222.222; PSMStartTime=1712100199; PSMStatus=Final; PSMVaultUserName=vadim@vman.com; PolicyID=VadimWindowsDomain; ProviderID=PSMApp_VmanCon01; UserName=vmanda; PSMEndTime=1712100250; ActualRecordings=kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.WIN.txt;184,kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.VID.avi;185; Safe=PSMRecordings; Folder=Root; Name=kajshd7389-zxcv-asdf-qwer-4238746kjwdfhs89.session}",
                         "RecordingFiles": " ",
                         "RecordedActivities": "",
                         "VideoSize": 1691132,
                         "TextSize": 3048,
                         "DetailsUrl": "recordingdetails.aspx?Data=je784o94kfg0ek67y8ke04958yefn5i847yjt78j4eo78t4jy5o7mt458yntd9285m70ws8k20348jytf4597fho94hmnoy9875mh49e87mh4o85d0wl89l509d38k45t983f54"
                 },
                 ...
         ],
         "Total": 37
}

$false if failed