Guides / Microsoft 365 with PowerShell

365

Microsoft 365 with PowerShell

Set up a sign-in that works without a person at the keyboard, so the M365 scripts can run on a schedule.

Setup time: 30 minutes, once · 9 steps

  1. 1PowerShell 7
  2. 2Install modules
  3. 3Certificate
  4. 4App registration
  5. 5Permissions
  6. 6Run
Your admin machinescript + certificatethumbprintEntra appyour permissions onlytokenMicrosoft Graphusers, devices, TeamsExchange Onlinemailboxes
How the pieces connect
  1. 01Install PowerShell 7 (recommended)
  2. 02Install the two modules
  3. 03Make a certificate for the script
  4. 04Register an app for the scripts
  5. 05Upload the certificate
  6. 06Give it only the permissions you need
  7. 07Assign a role for Exchange scripts
  8. 08Run a script
  9. 09Prefer to sign in by hand?

Included with every paid plan

Members get the full guide: every command ready to copy, where to click, a check-it-worked list and links to the official downloads.

Members: the full guides are in the Setup-Guides folder of your library download.