Install-Module ExchangeOnlineManagement -Scope CurrentUser

Connect to Exchange online

Connect-ExchangeOnline -UserPrincipalName [email protected]
Get-MailboxFolderPermission office@example\ןמוי
Get-MailboxFolderPermission office@example\ןמוי | fl

Check guest permission


Get-MailboxPermission [email protected] 
# В Simple.com PowerShell
Add-MailboxFolderPermission -Identity [email protected]:\Calendar -User [email protected] -AccessRights Editor
Get-MailboxFolderStatics [email protected] | Select-Object Name, FolderPath

Connect to Microsoft.Graph

Install module Microsoft.Graph

Install-Module Microsoft.Graph -Scope CurrentUser
  • Microsoft.Graph is the official PowerShell module (Microsoft Graph PowerShell SDK) designed to manage Microsoft cloud services through a single Microsoft Graph API interface.

    • Users and groups: account creation, password resets, license management, role assignment.

    • Microsoft Teams, SharePoint, and OneDrive: administration of channels, sites, and access permissions.

    • Exchange Online: management of mailboxes and distribution groups.

    • Intune (Endpoint Manager): device and security policy management.

Connect to Administrator

Connect-MgGraph -Scopes UserAuthenticationMethod.ReadWrite.All

check user method MfA

Get-MgUserAuthenticationMethod -UserId [email protected]
Id                                   AdditionalProperties
--                                   --------------------
3179e48a-750b-4051-897c-87b9720928f7  ...