365 Pro Toolkit Install Guide

The 365 Pro Toolkit installer is a single exe. Install it on one Windows machine, then connect it to your Microsoft 365 tenant.

Before you start

  • A Windows machine to install it on. Windows Server 2012 or later, or Windows 10 or 11. A server is the usual choice, but a desktop is fine if you are the only one using it.
  • Local administrator rights. The installer registers a Windows service, and the setup assistant installs a certificate and opens the firewall, both of which need elevation.
  • A Global Administrator account for the Microsoft 365 tenant you are connecting. You will sign in with it once, in PowerShell, during step 3.
  • HTTPS. Required, not optional. Microsoft will not accept a plain http sign-in address except on localhost. The setup assistant can create a self-signed certificate, or take a .pfx you already have.
  • Outbound HTTPS to Microsoft. No inbound rule from the internet is needed: the toolkit reaches out to Microsoft, and nothing reaches in.

The full list, including the permissions the app registration is granted, is in Requirements.

Quick start

  1. Run the installer as an administrator. It installs the service and opens the setup assistant.
  2. Address and HTTPS. Enter the name people will use to reach the toolkit, and choose a certificate.
  3. Tenant. Enter the domain of the tenant you are managing, and pick a certificate or a client secret.
  4. App registration. Open PowerShell in the install folder, run the command the assistant gives you, sign in as a Global Administrator, and paste the two IDs it prints back into the assistant.
  5. Review and finish. Name the account that will administer the toolkit, then click Finish setup.
  6. Open the toolkit and sign in with that account.

Setup in detail

The same steps as above, with the explanation.

Install

  1. Download the installer and run it as an administrator.
  2. Accept the install location, or change it. The default is fine.
  3. Let it finish. It registers the 365 Pro Toolkit service, starts it, and opens the setup assistant.

If you close the setup assistant before finishing, you can run it again from the Start menu. It picks up where it left off and is safe to re-run.

Step 1: Address and HTTPS

This is where people will reach the toolkit in a browser, and it has to be settled before anything else, because the sign-in address registered with Microsoft in step 3 is built from it.

  1. Enter the Computer or DNS name. Use the name people will actually type, for example pc1.ad.activedirectorypro.com. It is pre-filled with the server's own name.
  2. Set the HTTPS port, normally 443. Check port tells you whether something else is already using it.
  3. Choose how the site is secured:
    • Create a self-signed certificate (default). Made on the server, no external dependency. Browsers warn that it is not trusted until you install it on the machines that connect, which is usually one Group Policy or Intune task.
    • Use my own certificate (.pfx). Browse to a .pfx or .p12 holding the certificate and its private key, and enter its password. No warnings, as long as the issuer is already trusted. Its subject must match the name you entered above.

HTTPS is not optional here, and that is deliberate: sign-ins and the temporary passwords the password tools generate would otherwise cross the network in plain text. Microsoft also refuses to register a plain http sign-in address for anything but localhost.

Step 2: Tenant

Two answers, and neither of them changes anything yet.

  1. Domain or tenant ID. The Microsoft 365 tenant this install will manage, for example contoso.onmicrosoft.com or contoso.com. This matters more than it looks: PowerShell often signs you in silently as whoever is logged on to the server, and naming the tenant here is what stops the app registration being created in the wrong directory.

  2. Sign-in credential - how the toolkit authenticates to Microsoft 365 afterwards:

    • Certificate (recommended). A key pair is created on this server. The private half never leaves it, and there is nothing for you to copy back. It is valid for one year.
    • Client secret. The script creates one and prints it, and you paste it in on the next step. Valid for twelve months by default.

    Both work. The certificate is recommended because the credential itself never travels and never appears on screen, and because the OneDrive access tools need one: Microsoft does not accept client secrets for SharePoint app-only access.

This is a different certificate from the one in step 1. That one secures the website in a browser; this one identifies the toolkit to Microsoft. You can have either, both, or one of each.

Step 3: App registration

The toolkit reads and manages Microsoft 365 through an app registration in your own directory. A script creates it, because creating one requires an administrator signed in to Microsoft, and the toolkit has no way to do that before the registration it is creating exists.

The screen gives you four numbered steps. In outline:

  1. The script. Setup-365ToolkitAppRegistration.ps1 ships with the toolkit and sits in the install folder, so on the server itself there is nothing to download.
  2. Open PowerShell in that folder. The command uses the script's name on its own, so PowerShell has to be looking at the folder holding it. Shift-right-click the folder and choose Open PowerShell window here, or cd to it.
  3. Copy the command and run it. It is built for this install, with your address, your tenant and your certificate already filled in. Do not retype it. Sign in as a Global Administrator when prompted - the first time on a machine, Windows may ask you to pick an account twice, which is normal and happens once. The script then shows what it is about to do, names the organisation, and asks you to confirm before changing anything.
  4. Paste back the two values it printed: Directory (tenant) ID and Application (client) ID, plus a Client secret if you chose that credential. Then click Next. The assistant checks them with Microsoft straight away, so a mistyped value is an error here rather than a broken install later.

If this tenant already has a 365 Pro Toolkit registration - because you are reinstalling, or moving the toolkit to a new server - the screen offers Update the existing app registration instead of creating a new one. Take it. The command then carries -AppId, and the script adds what is missing rather than leaving a second consented registration behind.

What the script does

  • Creates an app registration called 365 Pro Toolkit in your tenant.
  • Adds the permissions the toolkit needs and grants admin consent for them.
  • Consents openid and profile for all users, so nobody is asked to approve anything when they sign in.
  • Assigns the Exchange Administrator role, which Exchange requires in addition to its permission.
  • Registers your address as the sign-in redirect URI.
  • Creates the credential: the certificate's public key, or a new client secret.

It is safe to re-run. Every step checks whether the change is already in place. Nothing belonging to us is created in your tenant, and the registration is yours to inspect or delete at any time.

If you only want reporting and no changes to your tenant, add -ReportingOnly to the command. Every report still works; the tools that make changes do not, and the toolkit's permission check will list the omitted permissions as missing, which is expected on that kind of install.

Step 4: Review and finish

  1. Check the address, certificate and company name shown. The company name is the real one, read back from Microsoft, not the ID you pasted.
  2. Enter the 365 Toolkit Administrator: the account that gets full access to the toolkit and can add everyone else. Use a sign-in name from the tenant you just connected, for example admin@contoso.com. It is checked against Microsoft before anything is saved, because an install with an owner who does not exist is an install nobody can sign in to.
  3. Click Finish setup. The assistant installs the certificate and opens the firewall, saves the connection, and restarts the service.
  4. Click Open 365 Pro Toolkit.

After setup

Sign in with the administrator account you nominated. From there:

  • Settings > Connections shows the connected tenant. Check permissions confirms every permission the toolkit expects is granted, and the Credential expires column tells you when the certificate or secret runs out.
  • The sync indicator in the title bar shows the first sync running. Click it for the Sync Manager, which lists every source and when it last ran. The directory is pulled in within a few minutes; Exchange, SharePoint, OneDrive and Copilot data arrive on the first daily pass.
  • Settings > Access Control adds the rest of your team and sets what each of them can reach.
  • Settings > License activates your key. Until then the trial applies.

To manage more than one tenant, add each from Settings > Connections. See Connect a tenant.