PowerShell for Office 365

This article will help administrators setup Powershell for Office 365.

This article and Pshell for O365 was created by: Nathan Mitchell, AppRiver, LLC

1. Open Windows Powershell on your machine by going to Start > Programs > Administrative Tools > right-click on Windows Powershell > click Run as Administrator. If an User Access Control Dialog appears click Yes or Allow. Note: If you cannot find Administrative Tools on your machine you can usually find Windows Powershell by simplifying typing the name into your search bar.

2. In the Powershell window enter the following command then press Enter to set your Execution Policy so Powershell scripts can be ran.

Set-ExecutionPolicy Unrestricted -Force

After pressing Enter you can close the Powershell window.



3. Now that your Execution Policy has been set you can download and install Pshell for O365 from the following link.


Pshell for O365 is a custom installer that will walk you through installing all of the necessary modules, the connection scripts, and an easy to use shortcut right on your desktop. You will more than likely be prompted to install prerequisites when you run the installer for the first time. Simply click Next through the installation steps to install all of the required components.

4. After all of the prerequisites are installed you will be taken to the Pshell for O365 installer. Simply click Next through the installation steps to complete the install.

5. Restart your machine so all modules can finish installing properly.

6. Now that Pshell for O365 is installed simply double-click the Pshell for O365 icon on your desktop and enter your Office 365 credentials in the credential prompt then click OK.

Congratulations!!! You are now connected to Office 365 in Powershell.

Note: Pshell for O365 can establish a connection to MSOL, Exchange, and Sharepoint. The connected services will vary depending on what services are provided with your Office 365 subscriptions.  

Congratulations!!! You are now connected to Office 365 in Powershell.

Created by: Nathan Mitchell, AppRiver, LLC