Hi All,
I have the below script
$user = "XXXX@XXX.com"
$sspw = ConvertTo-SecureString ‘XXXXXXX’ -AsPlainText -Force
$PlainCred = New-Object System.Management.Automation.PSCredential $user, $sspw
connect-Msolservice -credential $PlainCred
Getting the Below error, Not sure why any advice
connect-Msolservice : An error occurred while sending the request.At line:1 char:1
+ connect-Msolservice -credential $PlainCred
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Connect-MsolService], HttpRequestException
+ FullyQualifiedErrorId : System.Net.Http.HttpRequestException,Microsoft.Online.Administration.Automation.ConnectM
solService