June 23, 2024

SamTech 365

PowerPlatform, Power Apps, Power Automate, PVA, SharePoint, C#, .Net, SQL, Azure News, Tips ….etc

ESPC 19 | Getting Started with PowerShell for Office 365, By Vlad Catrinescu

A great session today presented by one of the greatest speakers Vlad Catrinescu, whom I’ve been following through his blog AbsoluteSharePoint and Pluralsight.

Office 365 Administration Tools

The O365 Admin Center, can be the first place to look

O365 Admin App, is the other small tool which probably is only useful for the push notifications at this time, hopefully it will be upgraded soon, but at this time, just the service notifications and probably users management.

PowerShell !! hell yeah, now we are talking, PowerShell is the tool for all the admins mainly for Automation. The other benefit of using PowerShell, some advanced functions are only available on PowerShell (E.g. creating a hub site, at the begining was only available on PowerShell).

Office365 Management API, programmatic access, and innovate on top, mainly for the Devs.

Azure Active Directory PowerShell Module

Using the PowerShell gallery, we need to download the AzureActive Directory module. PS; we need PowerShellGet

To connect, without Multi Auth factors, we need to get the Credential, and use the object.

If you have Multi Authentication factors, we can’t save the credential in an object.

AzureADPreview Module contains some beta commandlets.

You need to be a global admin to use Azure AD PowerShell module.

SharePoint Online PowerShell Module

The Module Microsoft.Online.SharePoint.PowerShell  is available in the PowerShell modules.

To use SharePoint PowerShell Module, you have to be SharePoint Admin and we connect to the admin center url.

The PnP module has about 400 commands, from which about 300 are not provided by Microsoft SharePoint Online Module.

Mainly things under the site level, in other words, most of the Microsoft efforts around PowerShell and SharePoint are concentrated at the top level (tenant > Site Collection and sites), however, the PnP module allow to go to a deeper level, list, items, versions …etc.

The other difference between PnP and MS modules, is that with MS we connect to the tenant, where with PnO We connect to the site collection.

Microsoft Teams PowerShell Module

The module is available in the PowerShell Gallery, and you need to team service admin to run the PowerShell commandlets for Teams.

Some really interesting commandlets, epsecially arround blocking stuffs (Giffy, Mentionning a team, mentionned a channel, editting messages ..etc.)

The other important discussion was around the Teams Preview module which is on version 1.0.18, and the production one still running 1.0.3.