Office365

Office 365: hybrid-mode, ADFS, Single Sign On, DirSync

MigrationWiz Error “Your migration failed while checking destination credentials. Http POST request to ‘autodiscover-s.outlook.com’ failed – 401 Unauthorized”

When migrating from to Office 365 you may receive the following error on the destination:"Your migration failed while checking destination credentials. Http POST request to 'autodiscover-s.outlook.com' failed - 401 Unauthorized" Diagnosis: Try logging into the Office admin account specified in MigrationWiz, and look for any prompts or requirements that you have to click through, any of these will prevent MigrationWiz from connecting to Office 365 with the account. One example is the following Read more [...]

MigrationWiz Error: “Your migration failed while checking source credentials. The request failed. The remote server returned an error: (404) Not Found.”

When migrating from Exchange 2003 to Office 365 you may receive the following error on the destination:"Your migration failed while checking source credentials. The request failed. The remote server returned an error: (404) Not Found." Diagnosis: If you're using a single master source admin credential for the Migration, the most common scenario, then you should test access to each problem mailbox using the admin credential and following URL format: https://mail.example.com/exchange/user@example.com If Read more [...]

Connect to Office 365 PowerShell

Office 365 PowerShell Prerequisite Software:
These steps are only required once, however you may need to repeat them occasionally to install newer versions of the software.

If you are not running Windows 10, then you will need to install the 64-bit version of the Microsoft Online Services Sign-in Assistant: Microsoft Online Services Sign-in Assistant for IT Professionals RTW.
Install the Microsoft Azure Active Directory Module for Windows PowerShell with these steps:

Open an elevated Windows Read more [...]

Change UPN of all AD users in an OU

Issue: You need to change the User Principal Name (UPN) on a large group of users

Solution: The following command will allow you to change the UPN of all users contained in a chosen OU.
Get-ADUser -Filter * -SearchBase 'ou=yourOU,dc=yourDomain,dc=com' -Properties userPrincipalName | foreach {Set-ADUser $_ -UserPrincipalName "$($_.samaccountname)@newupndomain.com"}
To test your command and determine who it would apply to, use only this portion initially:
Get-ADUser -Filter * -SearchBase 'ou=yourOU,dc=yourDomain,dc=com' Read more [...]

How to exclude Office 365 Global Admin from password expiration policies

Issue: the password expiration of the Office 365 global administrator account will cause Azure AD Connect and DirSync to stop synchronizing on-prem AD to Office 365 Azure AD.

Prevention: One solution is to exclude your Office 365 global admin account from password policies and set it's password to never expire.  Note: Always have a very strong password on your Office 365 global admin account.

launch an instance of Office 365 PowerShell connected to your tenant
Run the following command:
Set-MsolUser Read more [...]