Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Windows Powershell Error - Invoke-RestMethod : Sendera:UnauthorizedUnauthorized

$
0
0
installed O365ServiceCommunication module and tried executing script but I am getting following error. Please help.

Invoke-RestMethod : Sendera:UnauthorizedUnauthorized
At C:\windows\system32\windowspowershell\v1.0\Modules\O365ServiceCommunications\1.2\functions\New-SCSession.ps1:59 char:22
+         Cookie     = Invoke-RestMethod @Splat | Select-Object -Expand ...
+                      ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Invoke-RestMethod : Sendera:BadRequestBad Request
At C:\windows\system32\windowspowershell\v1.0\Modules\O365ServiceCommunications\1.2\functions\Get-SCEvent.ps1:79 char:3
+         Invoke-RestMethod @Splat | Select-Object -ExpandProperty Even ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand 

Viewing all articles
Browse latest Browse all 21975

Trending Articles



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