Loading...
 

Microsoft Office 365 Administration with PowerShell

As a Microsoft Office 365 Global Administrator, PowerShell and Git are the necessary tools for effective management. The following is a quick guide for installing the Office 365 and Azure PowerShell modules and Git.

Manage Office 365 with Office 365 PowerShell

"With the Microsoft 365 admin center, you can not only manage your Office 365 user accounts and licenses, but you can also manage your Office 365 server products: Exchange, Skype for Business Online, and SharePoint Online. However, you can also manage these elements with Office 365 PowerShell commands, taking advantage of a command-line and scripting language environment for speed, automation, and additional capability."

Install the required software:

  1. Launch PowerShell as Administrator
  2. PS > Install-Module -Name AzureAD
  3. Install - Microsoft Online Services Sign-In Assistant for IT Professionals RTW - https://www.microsoft.com/en-us/download/details.aspx?id=41950
  4. PS > Install-Module MSOnline

Manage PowerShell Scripts with Git

"Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike."

Installing Chocolatey and Git:
"Chocolatey - Software Management Automation"

  1. Launch PowerShell as Administrator
  2. PS > Set-ExecutionPolicy Bypass -Scope Process -Force; iex New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'
  3. Close and Reopen PowerShell as Administrator
  4. PS > choco install git

References