Get-VPASPSMSessionActivities


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET PSM SESSION ACTIVITIES


Description:

USE THIS FUNCTION TO GET PSM SESSION ACTIVITIES


Syntax:

Get-VPASPSMSessionActivities [[-SearchQuery] <String>] [[-PSMSessionID] <String>] [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-SearchQuery <String>
Search string to find target resource via username, address, safe, platform, etc.
Comma separated for multiple fields, or to search all pass a blank value like so: " "

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

-PSMSessionID <String>
Unique ID that maps to the target PSMSession
Supply the PSMSessionID to skip any querying to find the target PSMSession

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

-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: 3
Default value:
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:

$GetPSMSessionActivitiesJSON = Get-VPASPSMSessionActivities -SearchQuery {SEARCHQUERY VALUE}

$GetPSMSessionActivitiesJSON = Get-VPASPSMSessionActivities -PSMSessionID {PSM SESSION ID VALUE}


Outputs:

If successful:
{
         "Activities": [
                 {
                         "ActivityText": "explorer.exe, Program Manager",
                         "ActivityType": 3,
                         "ActivityId": "87657",
                         "Formats": "vid",
                 "Offsets": "@{vid=00:00:06}"
                 },
                 {
                         "ActivityText": "notepad.exe, Untitled - Notepad",
                         "ActivityType": 3,
                         "ActivityId": "87658",
                         "Formats": "vid",
                 "Offsets": "@{vid=00:00:19}"
                 },
                 {
                         "ActivityText": "notepad.exe, Notepad",
                         "ActivityType": 3,
                         "ActivityId": "87659",
                         "Formats": "vid",
                 "Offsets": "@{vid=00:00:36}"
                 }
         ],
         "Total": 3
}

$false if failed