Get-SPLogEvent not recognized in SharePoint Online Management Shell 2013. Is this cmdlet not recognized in the SharePoint Online environment or is there something that needs to be enabled in order for this to be used? I was trying to run this cmdlet with a correlation ID to find out why I was receiving an error message. The syntax I used was:
Script:
Param([string] $CorrelationId)
Get-SPLogEvent -StartTime (Get-Date).AddMinutes(-60) | ?{$_.Correlation -eq $CorrelationId} | ft Category, Message -AutoSize | Out-String -Width 1024 > log.txt
PS command:
.\GetSPLogEvent.ps1 -CorrelationId "xxxxxxxxxxxxxxxxxxxxxxxxxxxx”
Any ideas or fixes for this?
Thanks in advance!