Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Get-SPLogEvent not recognized in SharePoint Online Management Shell 2013

$
0
0

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!



Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>