- Exchange Online PowerShell (Exchange Settings)
- Azure Active Directory MSOnline (msol cmdlets)
- Azure Active Directory PowerShell for Graph (azuread cmdlets)
- Virtual Machine settings using Powershell (AzureRM cndlets)
PowerShell Capabilities are limitless with these modules you can automate most of the repetitive activities with ease.
Exchange Online PowerShell
Exchange Online PowerShell allows you to Exchange Online settings using a command line. You can manage all bulk changes using scripts and with a variety of commands using pipeline methods.
Lets see how to Connect Exchange Online PowerShell
Set-ExecutionPolicy RemoteSigned$UserCredential = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic –AllowRedirectionImport-PSSession $Session –DisableNameChecking
Sample Command to make sure its connected.
You can explore the commands available usingget-command
it support wildcards
Connecting to Office 365 PowerShell
Mostly to manage azure active directory users
Microsoft Azure Active Directory Module for Windows PowerShell (cmdlets include MSol in their name)Install-Module MSOnlineConnect-MsolService
Sample Command to make sure its connected.Get-MsolUser -UserPrincipalName email@example.com
Azure Active Directory PowerShell for Graph (cmdlets include AzureAD in their name)Install-Module -Name AzureADConnect-AzureADGet-AzureADDomain -Name azure365pro.com
To Get Virtual Machine settings using Powershell and AzureRM commandletsInstall-Module AzureRMConnect-AzurermAccount
Sample Command to make sure its connected.Get-AzureRmVM
Please note that if you don’t kill your session. You may need to wait until the power shell session expires if you reconnect multiple times.Remove-PSSession $Session