LiveFor M365 admins

M365 & Exchange PowerShell Builder

Pick a task such as mailbox permissions, licence assignment or calendar delegation and get the right Exchange Online, Microsoft Graph or Entra PowerShell, with connection steps.

Runs in your browser. Your data never leaves this device.
~/apps/powershell-admin-builderruns in your browser · nothing uploaded
 

Let a user open another mailbox (shared or user). · Exchange Online PowerShell

 
 
PowerShell
# Full Access to a mailbox
# Generated by techieshelp.com. Review before running.

# Install-Module ExchangeOnlineManagement -Scope CurrentUser   # once
Connect-ExchangeOnline -ShowBanner:$false

Add-MailboxPermission -Identity 'sales@contoso.com' -User 'jane.doe@contoso.com' -AccessRights FullAccess -InheritanceType All -AutoMapping $true

# Check the result
Get-MailboxPermission -Identity 'sales@contoso.com' | Where-Object { -not $_.IsInherited -and $_.User -notlike 'NT AUTHORITY*' }

Disconnect-ExchangeOnline -Confirm:$false

Uses the ExchangeOnlineManagement and Microsoft.Graph modules (PowerShell 7 recommended). Sign in with an account that has the right admin role, such as Exchange Administrator or User Administrator; Graph asks you to consent to the listed scopes the first time. Addresses you type stay in your browser and aren’t added to the share link. Cmdlets checked against Microsoft Learn, December 2026. Always run with -WhatIf first in production.

What it does

  • 14 everyday tasksMailbox and calendar permissions, forwarding, out of office, shared mailboxes, licences, groups, leavers and reports.
  • Ready to runIncludes the module install, connection with the right Graph scopes, the change, a check of the result and a disconnect.
  • Safe by defaultUndo any permission with one tick, and add -WhatIf for a dry run.
  • PrivateAddresses you type stay in your browser; the share link only includes the task.

How to use it

  1. Choose a task

    For example Full Access to a mailbox or assigning a licence.

  2. Fill in the mailbox, user and options

    Invalid addresses are highlighted.

  3. Tick dry run the first time
  4. Copy or download the .ps1 and run it in PowerShell 7

Questions people ask

Should I use MSOnline or AzureAD PowerShell?

No. Both modules are retired. Use Microsoft Graph PowerShell (Microsoft.Graph) for users, groups and licences, and ExchangeOnlineManagement for mailboxes.

What is the difference between Send As and Send on Behalf?

Send As makes the message look as if it came from the mailbox itself. Send on Behalf shows “Jane on behalf of Sales”, so recipients can see who actually sent it.

Can a shared mailbox be used without a licence?

Yes, as long as it is under 50 GB and has no archive or litigation hold. Users who access it need their own licence.

Why does auto-mapping matter?

Auto-mapping adds the mailbox to the user’s Outlook automatically. It is convenient, but for very large mailboxes or ones with many delegates it can make Outlook slow, so you can turn it off.

Last updated 4 Dec 2026 · More in Sysadmin & Command Builders

More Sysadmin & Command Builders tools

See all →
Your product here. Reach IT engineers and architects who use these tools.Advertise →