BitTitan / bittitan-community-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help Add-MW_MailboxConnector -AdvancedOptions examples?

crayon-robertelliott opened this issue · comments

I want to be able to create a new Mailbox Connector and I can but I need this option enabled. There is a parameter -AdvancedOptions, however I'm not sure what to call to enable it. Anyone have an idea or examples?

image

$connector = Add-MW_MailboxConnector -Ticket $mwTicket -Name "PSProject"
-UserId $mwTicket.UserId -ProjectType Mailbox
-ExportType ExchangeServer -ImportType ExchangeOnline2
-ExportConfiguration $exportConfiguration -ImportConfiguration $importConfiguraton
-OrganizationId $customer.OrganizationId `

  • AdvancedOptions @{?????????}

When enabled in the GUI/Website, it adds this in the support options - UseEwsImportImpersonation=1, which I've tried to add in the command but no luck.

For anyone who is interested in the answer to this, support referred me to here.

https://github.com/BitTitan/bittitan-community-scripts/blob/master/MigrationWiz/create/ADD-MW_MappingAdvancedOptionsFromCSV.ps1

Which didn't exactly explain what's in the csv, however I noticed how the syntax should be when adding -AdvancedOptions parameter. You can just add the variable to -AdvancedOptions parameter.

$EwsImport = "UseEwsImportImpersonation=1"

If you need to add more than one option use this syntax, for whatever reason use spaces as separators. Yes even the one in the beginning.

$EwsExport = "UseEwsExportImpersonation=1"
$EwsAdd = " " + $EwsImport + " " + $EwsExport

Add-MW_MailboxConnector -AdvancedOptions $EwsAdd

I only needed to know the Ews options, I'm sure there are other options you may need to add. If so do it manually in the website and look at what gets added to the support options, use that variable to add into the command. Hope this helps others.