Powershell Script to Create Random Complex Passwords suitable for O365

By Tom Kitching

This script enables you to generate a set of random complex passwords for a list of users which is imported as a CSV file.  The password will contain upper and lowercase letters, symbols, numbers and will always be between 8-16 characters in length (meeting the O365 requirements).  Obviously the functions can be tweaked to make…

Connect to O365 exchange with powershell using session import

By Tom Kitching

It seems fairly obvious but a lot of people are unsure how to import a remote powershell session to O365. Simply do the following: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session