I'm having an issue with adding one particular an organization with powershell, however when I add it with the GUI it works fine. here is my powershell which works fine for other organizations:
Code: Select all
Import-Module Veeam.Archiver.PowerShell
$user = "email@address.com"
$pword = ConvertTo-SecureString -String "password" -AsPlainText -Force
$ocreds = New-Object -TypeName "System.Management.Automation.PSCredential" -ArgumentList $user, $pword
Add-VBOOrganization -Type Office365 -Office365Credential $ocreds -Office365GrantImpersonation
Code: Select all
Add-VBOOrganization : Failed to change organization settings.
At line:1 char:1
+ Add-VBOOrganization -Type Office365 -Office365Credential $ocreds -Off ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-VBOOrganization], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.Archiver.PowerShell.Cmdlets.Organizations.AddVBOOrganization
Thanks