Powershell

What can the Office 365 “Service administrator” / “Service Support Administrator” role do?

Many Office 365 deployments struggle with delegating permissions to specific actions or areas of administration inside the tenant. Many simple administrative activities such as reading licensing and service plan information at the tenant and user level, require administrative access to the tenant. What Office 365 Administrator Role should be used

Detecting and Launching PowerShell with Elevated Administrator Rights

Here is a good reference on detecting whether a PowerShell script is currently running with Administrator rights, and relaunching with elevated permissions if not. Courtesy of Bruno Saille’s JEA Helper Tool 2.0: https://gallery.technet.microsoft.com/JEA-Helper-Tool-20-6f9c49dd ######################################################################################## #Make sure we run elevated, or relaunch as admin ######################################################################################## $CurrentScriptDirectory = $PSCommandPath.Substring(0,$PSCommandPath.LastIndexOf(“\”)) Set-Location $CurrentScriptDirectory    

Azure AD PowerShell Modules

There have been several Windows Azure Active Directory Modules.  Here is a quick reference. What Versions Exist? Microsoft’s evolution and naming of the modules has caused some confusion: V1.  The initial PowerShell module for Azure AD  is named “MSOnline” and was also known as the Office 365 PowerShell module  https://docs.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0

A Clever Method to Call .NET from PowerShell

I came across a very interesting PowerShell technique today courtesy of Guy Bachar’s TechNet Gallery Script Exchange Online Audit Log Report (HTML Format). This PowerShell script contains .NET code which calls the local Windows Credential Manager.  Pheww!  Could come in handy. …. . ###################################################################### # API to load credential from