WARNING: Cannot bind to MsgFolderRoot: Exception calling “Bind” with “2” argument(s): “Credentials are required to make a service request.”
I’ve tried using $Credentials= Get-Credential but it doesnt seem to care i’ve applied that. It doesnt like me putting in -Credentials into the script with all the other bits.
When using Basic Authentication, Credentials is required and your tenant needs to have BasicAuth enabled.
For Modern Auth, specifying TenantId, ClientId and one of Secret, CertificateThumbprint or CertificateFile (+optional CertificatePassword) is required for Modern Authentication/OAuth
Hi, When i try to run this i’m getting
WARNING: Cannot bind to MsgFolderRoot: Exception calling “Bind” with “2” argument(s): “Credentials are required to make a service request.”
I’ve tried using $Credentials= Get-Credential but it doesnt seem to care i’ve applied that. It doesnt like me putting in -Credentials into the script with all the other bits.
.\Invoke-Unarchive.ps1 -Identity Alex@nsmit.biz -Impersonation -Server outlook.office365.com -Secret $mySecret -TenantId $tenantId -ClientId $clientId -Verbose
Am i doing something wrong?