Disconnect-ExchangeOnlineMicrosoft Cloud
Read-onlyMicrosoft read-only
Disconnect-ExchangeOnline -Confirm:$falseCommand Index
Commands are extracted from fenced code examples across all guides, linked back to their source sections, and labeled with operator safety metadata.
Disconnect-ExchangeOnline -Confirm:$falseGet-EXOMailbox -ResultSize 10 -PropertySets MinimumGet-EXOMailbox -ResultSize 10 -PropertySets MinimumGet-EXOMailbox -ResultSize 25 -Properties ForwardingSmtpAddress,DeliverToMailboxAndForward | Select-Object DisplayName,ForwardingSmtpAddress,DeliverToMailboxAndForwardGet-EXOMailbox -ResultSize 25 -PropertySets MinimumGet-EXOMailboxPermission -Identity USER@DOMAIN.COM | Where-Object { -not $_.IsInherited }Get-MgApplication -All -Property Id,AppId,DisplayName,SignInAudienceGet-MgAuditLogDirectoryAudit -Top 20Get-MgAuditLogDirectoryAudit -Top 25Get-MgAuditLogDirectoryAudit -Top 50Get-MgAuditLogSignIn -Top 100 | Select-Object CreatedDateTime,UserPrincipalName,AppDisplayName,ConditionalAccessStatusGet-MgAuditLogSignIn -Top 100 | Select-Object CreatedDateTime,UserPrincipalName,AppDisplayName,ConditionalAccessStatus,StatusGet-MgAuditLogSignIn -Top 100 | Select-Object UserPrincipalName,ConditionalAccessStatus,StatusGet-MgAuditLogSignIn -Top 100 | Where-Object { $_.ClientAppUsed -match 'Other|IMAP|POP|SMTP' }Get-MgAuditLogSignIn -Top 20Get-MgAuditLogSignIn -Top 20 | Select-Object CreatedDateTime,UserPrincipalName,AppDisplayName,ConditionalAccessStatusGet-MgAuditLogSignIn -Top 50Get-MgAuditLogSignIn -Top 50Get-MgAuditLogSignIn -Top 50Get-MgAuditLogSignIn -Top 50 | Select-Object CreatedDateTime,UserPrincipalName,ConditionalAccessStatus,StatusGet-MgAuditLogSignIn -Top 50 | Where-Object { $_.UserPrincipalName -like '*break*' }Get-MgContextGet-MgContextGet-MgDirectoryRole -AllGet-MgDirectoryRole -AllGet-MgDirectoryRole -All | Select-Object Id,DisplayNameGet-MgDirectoryRole -All | Sort-Object DisplayNameGet-MgGroup -All -Property Id,DisplayName,GroupTypes,Visibility,SecurityEnabled,MailEnabled | Where-Object { $_.GroupTypes -contains 'Unified' }Get-MgGroup -All -Property Id,DisplayName,SecurityEnabled,MailEnabled,GroupTypesGet-MgGroup -All -Property Id,DisplayName,SecurityEnabled,MailEnabled,GroupTypesGet-MgGroup -Filter "securityEnabled eq true" -Property Id,DisplayNameGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -All | Select-Object DisplayName,StateGet-MgIdentityConditionalAccessPolicy -All | Select-Object DisplayName,StateGet-MgIdentityConditionalAccessPolicy -All | Select-Object DisplayName,State,ModifiedDateTimeGet-MgIdentityConditionalAccessPolicy -All | Select-Object Id,DisplayName,State,CreatedDateTime,ModifiedDateTimeGet-MgIdentityConditionalAccessPolicy -All | Select-Object Id,DisplayName,State,ModifiedDateTimeGet-MgIdentityConditionalAccessPolicy -All | Where-Object { $_.DisplayName -match 'legacy|basic' }Get-MgIdentityConditionalAccessPolicy -All | Where-Object { $_.State -eq 'enabledForReportingButNotEnforced' }Get-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId "00000000-0000-0000-0000-000000000000"Get-MgServicePrincipal -All -Property Id,AppId,DisplayName,AccountEnabledGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabled,UserTypeGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabled,UserTypeGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AssignedLicensesGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,UserType,AccountEnabledGet-MgUser -Filter "accountEnabled eq false" -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -Filter "accountEnabled eq true" -Property Id,DisplayName,UserPrincipalNameGet-MgUser -Filter "accountEnabled eq true" -Property Id,DisplayName,UserPrincipalNameGet-MgUser -Filter "startsWith(displayName,'Break Glass')" -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -Filter "startsWith(displayName,'Break Glass')" -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -Filter "userType eq 'Guest'" -Property Id,DisplayName,UserPrincipalName,UserTypeGet-MgUser -Top 10 -Property Id,DisplayName,UserPrincipalName,AccountEnabledSearch-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -Operations MailItemsAccessed -ResultSize 100Search-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -Operations SharingSet,SharingInvitationCreated,FileAccessed -ResultSize 100Search-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -Operations TeamCreated,MemberAdded -ResultSize 100Search-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -Operations UserLoggedInSearch-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -Operations UserLoggedIn,FileAccessed,MailItemsAccessed -ResultSize 100Search-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -ResultSize 100Search-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -ResultSize 100Search-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -ResultSize 100Search-UnifiedAuditLog -StartDate "2026-01-01" -EndDate "2026-01-02" -ResultSize 100