Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.16 KB

PowerShell Modules.md

File metadata and controls

49 lines (41 loc) · 1.16 KB

Microsoft Entra PowerShell

Install-Module -Name Microsoft.Graph.Entra -Repository PSGallery -Scope CurrentUser -AllowPrerelease -Force
Connect-Entra -TenantId 'your-tenant-id' -Scopes 'User.Read.All'

Enable-EntraAzureADAlias #enable aliasing
Get-AzureADUser -Top 1

Exchange Online

Install-Module ExchangeOnline
Connect-ExchangeOnline -DelegatedOrganization <customerdomain.onmicrosoft.com>

MS Online

Install-Module MSOnline
Connect-MsolService
# If you're using a CSP tenant
Get-MsolPartnerContract -DomainName <customerdomain.onmicrosoft.com> | Select-Object TenantID
Get-MsolUser -All -TenantId <TenantID>

Azure AD

Install-Module AzureAD
Connect-AzureAD -TenantId <TenantID>

Microsoft Teams and Skype for Business

Install-Module MicrosoftTeams
Connect-MicrosoftTeams -TenantId <TenantID>

#Will connect exisiting Teams session to Skype for Business module 
$session = New-CsOnlineSession
Import-PSSession $session

SharePoint Online

#Unsupported 😣

Security & Compliance Center

Connect-IPPSSession -DelegatedOrganization <CustomerDomain>