Powershell script for creating an O365 cloud mailbox within a hybrid exchange environment
I recently wrote this script that creates an O365 mailbox within a hybrid exchange environment, creating all the necessary attributes etc in exchange and AD Log all output to a local logfile, that is unique each time and won’t get overwritten
1 |
[cc lang="powershell"]Start-Transcript -Path $env:LOCALAPPDATA"CloudwyseLogs"$(get-date -Format ddMMyy_HHmmss)".log" -NoClobber[/cc] |
Clear output from the screen to prevent previous command being sent as first…