Powershell for Office 365

This article will walk you through installing Pshell for O365. The Pshell for O365 installer will install all necessary modules to connect to Office 365 in Powershell. Once installed you will have an easy to use icon on your desktop that connects to Office 365 through Powershell once you enter your global admin credentials.

1. To use Pshell for O365 you need to update the Execution Policy on your machine. To update your Execution Policy click Start then type in Powershell > once Windows Powershell appears right-click it then choose Run as Administrator.

2. You may get a prompt asking if you want to "Allow this app to make changes?" If this prompt appears simply click Yes then continue to the next step. If this prompt does not appear continue to the next step.

3. In the Powershell window enter the following command then press Enter to set your Execution Policy: Set-ExecutionPolicy Unrestricted -Force

4. Exit the Powershell window by clicking the X in the upper right corner of the window.

6. In the Pshell for O365 setup window you will be prompted to install prerequisites in most cases. Click Next on this window to proceed. If you do not see the prerequisites window that means you already have the necessary prerequisites and you can proceed to step 8.

7. In the prerequisites to install window you must install all prerequisites that are checked so simply click Next and follow the prompts through each installer.

8. Once you finish installing all prerequisites you will be prompted with the Pshell for O365 Setup Wizard. Simply click Next on this window to continue the installation.

9. On the Choose a file location window simply click Next.

10. On the Begin installation window click Install.

11. You may get a prompt asking if you want to "Allow this app to make changes?" If this prompt appears simply click Yes then continue to the next step. If this prompt does not appear continue to the next step.

12. Once the install finishes you should see this window and you can simply click Close to exit the window.

13. Now that Pshell for O365 is installed you will see the Pshell for O365 icon on your desktop. Simply double click the icon to start the app. Once the app is launched you will be prompted to enter your Global Admin credentials then click OK.

14. After clicking OK the Pshell for O365 application attempts to establish a Powershell connection to your O365 tenant. Based on the services available to your tenant Pshell for O365 can connect to MSOL, Exchange, and Sharepoint.

CONGRATULATIONS!!! You are connected to Office 365 in Powershell. You can now run commands and scripts as needed for your Office 365 tenant.