posts
Getting Started with PnP PowerShell: Modern Authentication and Multi-Tenant Setup
Introduction PnP PowerShell authentication for Microsoft 365 has evolved significantly over the years. The multi-tenant app registration approach was decommissioned for security reasons, requiring each tenant to set up its own app registration. Fortunately, the PnP team has simplified this process with automated cmdlets that streamline app registration and authentication setup.
This guide covers modern PnP PowerShell authentication methods, including interactive login setup, multi-tenant management, and certificate-based authentication.
The Evolution of PnP PowerShell Authentication Before: Multi-Tenant App Registration Single shared app registration across all tenants Simplified initial setup but created security concerns Decommissioned for enhanced security Now: Tenant-Specific App Registrations Each tenant needs to create and maintain its own app registration(s) Enhanced security and control Automated setup through PnP cmdlets Method 1: Interactive Login Setup Step 1: Create App Registration Automatically The Register-PnPEntraIDAppForInteractiveLogin cmdlet automatically creates an app registration with default permissions:
posts
PnP PowerShell: 3 Ways to Create Microsoft Teams with Custom Naming Conventions
Introduction There are multiple ways to create Microsoft Teams using PnP PowerShell, each offering different levels of control over naming conventions. This post explores 3 distinct methods and compares their capabilities for customizing Site Title, Site URL, and M365 Group names.
When a Microsoft Team is created, a SharePoint site and M365 Group are automatically created in the backend. You may want to implement different naming conventions for each component:
posts
SharePoint Search: Date Queries Search Out of the box Tricks
Introduction SharePoint search is powerful, but searching by date ranges can be surprisingly tricky. Many users struggle with date-based queries, especially when trying to find documents modified or created within specific timeframes. This guide provides tips to use SharePoint/M365 search capabilities with date fields: write, LastModifiedTime, Created.
The Challenge with Date Searches Date searches in SharePoint have several gotchas that can frustrate users:
Format requirements - SharePoint expects specific date formats (American format UTC , i.