| external help file | TeamViewerPS-help.xml |
|---|---|
| Module Name | TeamViewerPS |
| online version | https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Get-TeamViewerEventLog.md |
| schema | 2.0.0 |
Returns TeamViewer audit log events for the current account's company.
Get-TeamViewerEventLog -ApiToken <SecureString> [-EndDate <DateTime>] [-Months <Int32>] [-Days <Int32>]
[-Hours <Int32>] [-Minutes <Int32>] [-Limit <Int32>] [-EventNames <String[]>] [-EventTypes <String[]>]
[-AccountEmails <Object[]>] [-AffectedItem <String>] [-RemoteControlSessionId <Guid>] [<CommonParameters>]Get-TeamViewerEventLog -ApiToken <SecureString> -StartDate <DateTime> [-EndDate <DateTime>] [-Limit <Int32>]
[-EventNames <String[]>] [-EventTypes <String[]>] [-AccountEmails <Object[]>] [-AffectedItem <String>]
[-RemoteControlSessionId <Guid>] [<CommonParameters>]Fetches audit log events for the TeamViewer company that is associated with the given TeamViewer Web API token.
The list can optionally be filtered.
PS /> Get-TeamViewerEventLogGets all audit log events of the current company that were created in the last hour.
PS /> Get-TeamViewerEventLog -Days 7Gets all audit log events of the current company that were created in the last seven days.
PS /> Get-TeamViewerEventLog -StartDate "2021-10-01" -EventNames "UserCreated","UserDeleted"Gets user creation & deletion audit log events of the current company that were created since October 1st, 2021.
Optionally filter for events that are created by the accounts with the given email addresses.
Type: Object[]
Parameter Sets: (All)
Aliases: Users
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptionally filter for events that affect the given item.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSets 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: FalseSets the end for the date range of events to fetch. Defaults to now.
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Now
Accept pipeline input: False
Accept wildcard characters: FalseOptionally filter for audit events with specific names. For example only list
UserCreated events that are written when user accounts are created in the
company. Multiple values can be specified, separated by comma.
Possible values are:
AddRemoteWorkerDeviceChangedDisabledRemoteInputChangedShowBlackScreenCompanyAddressBookDisabledCompanyAddressBookEnabledCompanyAddressBookMembersHidCompanyAddressBookMembersUnhidConditionalAccessBlockMeetingStateChangedConditionalAccessDirectoryGroupAddedConditionalAccessDirectoryGroupDeletedConditionalAccessDirectoryGroupMembersAddedConditionalAccessDirectoryGroupMembersDeletedConditionalAccessRuleAddedConditionalAccessRuleDeletedConditionalAccessRuleModifiedConditionalAccessRuleVerificationStateChangedCreateCustomHostDeleteCustomHostEditOwnProfileEditTFAUsageEditUserPermissionsEditUserPropertiesEmailConfirmedEndedRecordingEndedSessionGroupAddedGroupDeletedGroupSharedGroupUpdatedIncomingSessionJoinCompanyJoinedSessionLeftSessionParticipantJoinedSessionParticipantLeftSessionPausedRecordingPolicyAddedPolicyDeletedPolicyUpdatedReceivedDisabledLocalInputReceivedFileReceivedShowBlackScreenRemoveRemoteWorkerDeviceResumedRecordingScriptTokenAddedScriptTokenDeletedScriptTokenUpdatedSentFileStartedRecordingStartedSessionSwitchedSidesUpdateCustomHostUserCreatedUserDeletedUserGroupCreatedUserGroupDeletedUserGroupMembersAddedUserGroupMembersRemovedUserGroupUpdatedUserRemovedFromCompany
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptionally filter for audit events with specific types. For example only list
LicenseManagement events that concern license-related topics.
Multiple values can be specified, separated by comma.
Possible values are:
CompanyAddressBookCompanyAdministrationConditionalAccessCustomModulesGroupManagementLicenseManagementPolicySessionUserGroupsUserProfile
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSets 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: FalseOptionally limit the results to the given number. If the limit is reached the function stops and won't fetch more events.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSets 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: FalseSets 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: FalseOptionally filter for a specific remote control session.
Type: Guid
Parameter Sets: (All)
Aliases: RemoteControlSession
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSets the start for the date range of events to fetch.
Type: DateTime
Parameter Sets: AbsoluteDates
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.