external help file | Module Name | online version | schema |
---|---|---|---|
TeamViewerPS-help.xml |
TeamViewerPS |
2.0.0 |
Returns the TeamViewer session reports of the company associated with the given API token.
Get-TeamViewerConnectionReport -ApiToken <SecureString> [-UserName <String>] [-UserId <Object>]
[-GroupId <Object>] [-DeviceName <String>] [-DeviceId <Int32>] [-WithSessionCode] [-WithoutSessionCode]
[-SessionCode <String>] [-SupportSessionType <TeamViewerConnectionReportSessionType>] -StartDate <DateTime>
[-EndDate <DateTime>] [-Limit <Int32>] [<CommonParameters>]
Get-TeamViewerConnectionReport -ApiToken <SecureString> [-UserName <String>] [-UserId <Object>]
[-GroupId <Object>] [-DeviceName <String>] [-DeviceId <Int32>] [-WithSessionCode] [-WithoutSessionCode]
[-SessionCode <String>] [-SupportSessionType <TeamViewerConnectionReportSessionType>] [-EndDate <DateTime>]
[-Months <Int32>] [-Days <Int32>] [-Hours <Int32>] [-Minutes <Int32>] [-Limit <Int32>] [<CommonParameters>]
Returns a list of TeamViewer session reports. The list can optionally be filtered using the given parameters.
PS /> Get-TeamViewerConnectionReport
List all available connection reports
PS /> Get-TeamViewerConnectionReport -Days 14
List connection reports of the last 2 weeks
PS /> Get-TeamViewerConnectionReport -SessionCode s1122344
List connection reports for the given session code.
PS /> Get-TeamViewerConnectionReport -UserId u1234 -StartDate "2021-05-01 13:00"
List reports for connections of the TeamViewer account with the given user ID and
that were initiated on or after May 1st, 2021 1pm.
If specified like this, dates/times use the timezone currently configured in
your Powershell. For UTC, just add a Z
at the end.
PS /> Get-TeamViewerConnectionReport `
-Group (Get-TeamViewerGroup -Name "My Computers" | Select-Object -First 1) `
-StartDate "2021-04-01" -EndDate "2021-04-02"
List connection reports for devices in a group named My Computers
and that
have happened between April 1st and April 2nd 2021.
This example shows the interaction with the Get-TeamViewerGroup
cmdlet.
The TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the start date to the given number of days before the end date.
If no -EndDate
is given, this is the number of days in the past until now.
Type: Int32
Parameter Sets: RelativeDates
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports by the given device identifier. This needs to be the TeamViewer ID of the device.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports by the given device name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the end for the date range of connection reports to fetch. Defaults to now. To be included in the results the connection is required to be ended before this date/time.
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports by the given group ID.
Type: Object
Parameter Sets: (All)
Aliases: Group
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the start date to the given number of hours before the end date.
If no -EndDate
is given, this is the number of hours in the past until now.
Type: Int32
Parameter Sets: RelativeDates
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Optionally limit the results to the given number. If the limit is reached the function stops and won't fetch more entries.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the start date to the given number of minutes before the end date.
If no -EndDate
is given, this is the number of minutes in the past until now.
Type: Int32
Parameter Sets: RelativeDates
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the start date to the given number of months before the end date.
If no -EndDate
is given, this is the number of months in the past until now.
Type: Int32
Parameter Sets: RelativeDates
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports by the given session-code.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the start for the date range of connection reports to get. To be included in the results the connection is required to be started on or after this date/time.
Type: DateTime
Parameter Sets: AbsoluteDates
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports by the given session type.
Type: TeamViewerConnectionReportSessionType
Parameter Sets: (All)
Aliases:
Accepted values: RemoteConnection, RemoteSupportActive, RemoteSupportActiveSdk
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports by the given user ID.
Type: Object
Parameter Sets: (All)
Aliases: User
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports by the given user name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports to only contain entries that have a session code.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter the list of connection reports to only contain entries that do not have a session code assiciated to.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.