Closed dickfrazier closed 3 years ago
Thank you so much!!
@dickfrazier I went through and validated the mandatories. Exchange Online credentials were missing - but the rest of the validation checks checked out. I ran just the start command and filled in the requested attributes.
And actually I just corrected myself - they're intentionally not mandatory. Instead of using parameter sets because it became highly confusing i just used based validation code. For exchange online - there's two methods to authenticate. As of now when running _without_specifying parameters it does not prompt you for everything you need.
Thanks! I make some real novice mistakes sometimes. I now understand that I need to set all the params after start-distributionlistmigration instead of being prompted for all of them or setting them in a file. I'm testing now 👍
Not all of them - part 1 lists the majors. They're kinda in groups.
So required -> mail, active directory, storage location, the OU to put them in, and one set of exchange online credentials (either app based or user name and password).
From there - it depends on what you want the script to do. If you want to shorten the migration time by having the script trigger a delta sync -> then you have to specify the ad connect information.
If you want to enable hybrid mail flow - then you need the exchange servers...
ETC...
Is this understanding correct?: If I am not worried about the hybrid mail flow then it will function like V1 but not have to talk to the on prem exchange server?
Also, thank you so much for putting so much time and energy into this and then also helping me understand everything, it is really generous
Correct - it has been re-written to be based off LDAP - for customers that no longer have Exchange
Making some real progress- it goes through and fails here:
Does that mean I need to add our internal domain to my accepted domains in 365 or is this when I need to use the -enablehybridmailflow? I think I would just rather have everything in 365, will adding the accepted domain do the trick?
Looks like you have an email address on the object that is not an accepted domain in Office 365.
It was the subdomain that we use for the internal domain that caused the issue, we did not have accept from all subdomains configured so I added it as an accepted domain and an internal relay. I had added it after seeing the error once but it hadn't seen the change yet and errored again, running it a third time was successful, as have the other 8 DL's that I have done so far. About 70 to go! Thanks so much for your work
Fantastic. I think I may add a check for the accepted domains. It's a good idea - first time I've run into that but it's not terribly uncommon.
One more thing that I found was that when it failed in that state I had to do some cleanup to re-run the script for that DL
That is correct.
When trying to run I was able to install and import the module, it asks for some parameters but not all the ones I expect and then fails and closes the powershell window. I am probably doing it wrong, where do I set the params ahead of time like I did with V1? The parameters it asks for and I give it before it fails are:
groupSMTPAddress globalCatalogServer activeDirectoryCredential logFolderPath dnNoSyncOU
`[9/22/2021 9:02:38 AM] - **** [9/22/2021 9:02:38 AM] - ENTERING PARAMTER VALIDATION [9/22/2021 9:02:38 AM] - **** [9/22/2021 9:02:38 AM] - Validating that both AADConnectServer and AADConnectCredential are specified [9/22/2021 9:02:38 AM] - Neither AADConnect Server or AADConnect Credentials specified - retain useAADConnect FALSE - False [9/22/2021 9:02:38 AM] - Validating that both ExchangeServer and ExchangeCredential are specified. [9/22/2021 9:02:38 AM] - Neither Exchange Server or Exchange Credentials specified - retain useOnPremisesExchange FALSE - False [9/22/2021 9:02:38 AM] - Validating Exchange Online Credentials. [9/22/2021 9:02:38 AM] - ERROR: One permissions method to connect to Exchange Online must be specified. [9/22/2021 9:02:38 AM] - **** [9/22/2021 9:02:38 AM] - BEGIN disable-allPowerShellSessions [9/22/2021 9:02:38 AM] - **** [9/22/2021 9:02:38 AM] - Gathering all PS Sessions [9/22/2021 9:02:38 AM] - Disconnecting Exchange Online Session [9/22/2021 9:02:38 AM] - END disable-allPowerShellSessions [9/22/2021 9:02:38 AM] - **** [9/22/2021 9:02:38 AM] - Archiving files associated with run. [9/22/2021 9:02:38 AM] - Split string for group name. C: DLConversionV2 logs DLMigration
hashtagtestdltoconvert.log
[9/22/2021 9:02:38 AM] - Split string for group name.
hashtagtestdltoconvert
log [9/22/2021 9:02:38 AM] - FAILED - renaming directory. [9/22/2021 9:02:38 AM] - 20210922T0902384613-#hashtagtestdltoconvert-FAILED [9/22/2021 9:02:38 AM] - C:\DLConversionV2\logs\DLMigration`