< Back
Get-SCEvent
Post
NAME Get-SCEvent
SYNOPSIS
Returns events from the Service Communications API.
SYNTAX
Get-SCEvent [[-EventTypes] <String[]>] [[-SCSession] <Object>] [[-PastDays] <Int32>] [<CommonParameters>]
DESCRIPTION
Returns events from the Service Communications API. These events can be Incidents, Maintenance messages, or just
informational messages.
PARAMETERS
-EventTypes <String[]>
Specifies the types of events that you would like to gather information for. Valid values are:
Incident
Maintenance
Message
Required? false
Position? 1
Default value Incident
Accept pipeline input? false
Accept wildcard characters? false
-SCSession <Object>
Specifies the Service Communications session to retrieve events for. These sessions are created using the
New-SCSession function.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PastDays <Int32>
Specifies the past number of days to return events for. Default value is 7 days.
Required? false
Position? 3
Default value 7
Accept pipeline input? false
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).
INPUTS
OUTPUTS
O365ServiceCommunications.Event
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$O365Admin = Get-Credential
$Session = New-SCSession -Credential $O365Admin
Get-SCEvent -EventTypes Incident,Maintenance,Message -PastDays 10 -SCSession $Session
Initiate a session to the Service Communications API and then return all events for the past 10 days.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-SCEvent -EventTypes Incident -SCSession $Session
Retrieve only Incident events.
RELATED LINKS
https://msdn.microsoft.com/en-us/librar ... 76043.aspx
SYNOPSIS
Returns events from the Service Communications API.
SYNTAX
Get-SCEvent [[-EventTypes] <String[]>] [[-SCSession] <Object>] [[-PastDays] <Int32>] [<CommonParameters>]
DESCRIPTION
Returns events from the Service Communications API. These events can be Incidents, Maintenance messages, or just
informational messages.
PARAMETERS
-EventTypes <String[]>
Specifies the types of events that you would like to gather information for. Valid values are:
Incident
Maintenance
Message
Required? false
Position? 1
Default value Incident
Accept pipeline input? false
Accept wildcard characters? false
-SCSession <Object>
Specifies the Service Communications session to retrieve events for. These sessions are created using the
New-SCSession function.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PastDays <Int32>
Specifies the past number of days to return events for. Default value is 7 days.
Required? false
Position? 3
Default value 7
Accept pipeline input? false
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).
INPUTS
OUTPUTS
O365ServiceCommunications.Event
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$O365Admin = Get-Credential
$Session = New-SCSession -Credential $O365Admin
Get-SCEvent -EventTypes Incident,Maintenance,Message -PastDays 10 -SCSession $Session
Initiate a session to the Service Communications API and then return all events for the past 10 days.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-SCEvent -EventTypes Incident -SCSession $Session
Retrieve only Incident events.
RELATED LINKS
https://msdn.microsoft.com/en-us/librar ... 76043.aspx