Example: if an Office 365 tenant has only the Exchange Online and Sharepoint Online services enabled in the Office 365 Enterprise E3 license plan, a user will have only these services enabled in the E3 license after running script on them.
The script moves a user's home folder to another location. Unlike the built-in Move home folder action, it does not stop when unable to move a folder or file, and copies it instead. All locked items are listed in the Execution Log.
The built-in 'Move Home Directory' action can fail on large directories if the operation takes more than 10 minutes to complete. This PowerShell code works around this issue by creating a separate process to move a home folder.