Generate ready-to-run PowerShell commands that create an external guest user without sending them an invitation email.
Run these once in Terminal. After that you only need the commands in section 3.
Fill in the fields above. The commands below update automatically. Copy each one into PowerShell and press Enter.
Open Terminal, then run this to start PowerShell:
A browser window will open. Sign in with your M365 Global Admin account.
Creates the guest in PendingAcceptance state. No invitation email is sent.
Allow 5–30 minutes for membership to fully propagate before testing.
The guest stays in PendingAcceptance until they redeem an invitation. When they need Teams / SharePoint access: