Create Profiles for Managing Microsoft Exchange using Windows Terminal (Online and On-Prem)
I use Windows Terminal a lot and I wanted to show off how I setup Exchange Management profiles to make my life easier. Enjoy! Exchange Online: In Windows Terminal, go to "Settings" and click "Add a new profile" at the bottom. Give it a name you like, and in the "Command line" field, Paste the following: powershell.exe -NoExit -Command "Import-Module ExchangeOnlineManagement; Connect-ExchangeOnline -UserPrincipalName user@contoso.com" Make sure to replace the UserPrincipalName property with your own. On-Prem Exchange: In Windows Terminal, go to "Settings" and click "Add a new profile" at the bottom. Give it a name you like, and in the "Command line" field, Paste the following: powershell.exe -NoExit -Command "$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://exchange.domain.com/powershell/; Import-PSSession $Session -DisableNameChecking" Make sure to replace the Connecti...