Open scripts · Real answers · Tested walkthroughs

The InnovaticT Community for Microsoft 365 admins

PnP PowerShell and Microsoft Graph scripts, answers to real support tickets, labs and architecture for Microsoft 365, Entra ID, Intune, Exchange Online, SharePoint, Active Directory, Configuration Manager and hybrid environments. Free to use, written from delivery work.

19script samples
31tool variants
12support answers
10labs and designs

Latest script samples

The same task in PnP PowerShell, Microsoft Graph PowerShell, CLI for Microsoft 365 and the native modules. Pick your tool on every sample.

All 19 samples

6 shown

>_ ScriptReport30 Nov 2026

Report site collection administrators for every site

Lists every site collection in the tenant with its site collection administrators, so you can find sites with no owner, a single owner, or a former employee still holding admin rights. Useful before a migration and in quarterly access reviews.

PnP PowerShellSPO Management ShellCLI for Microsoft 365
PUPriyanshu UpadhyayView script →
>_ ScriptSecurity29 Nov 2026

Find sites with external sharing turned on

Reports the sharing capability of every site so security and migration teams can see which sites allow anonymous links or guests, and compare them with the tenant default.

PnP PowerShellSPO Management Shell
PUPriyanshu UpadhyayView script →
>_ ScriptReport28 Nov 2026

OneDrive storage usage per user

Builds a OneDrive storage report for capacity planning and migration sizing: owner, storage used, file count and last activity. Two approaches: the SharePoint admin view of personal sites, and the Microsoft Graph usage report.

SPO Management ShellMicrosoft Graph PowerShell
PUPriyanshu UpadhyayView script →
>_ ScriptSecurity27 Nov 2026

Find users who have not signed in for 90 days

Finds enabled member accounts with no interactive or non-interactive sign-in in the last 90 days, a common first step for licence reclamation and before migration waves.

Microsoft Graph PowerShellGraph REST API
PUPriyanshu UpadhyayView script →
>_ ScriptReport26 Nov 2026

Licence assignment report by SKU

Shows how many licences you own, how many are assigned, and which users hold each SKU, with friendly names for the SKU part numbers. Run it before buying more licences or planning a migration.

Microsoft Graph PowerShellCLI for Microsoft 365
PUPriyanshu UpadhyayView script →
>_ ScriptProvision25 Nov 2026

Assign licences in bulk from a CSV

Assigns a licence to every user in a CSV, sets the usage location first when it is missing, and optionally disables service plans such as Exchange Online for users who are waiting for a mailbox migration.

Microsoft Graph PowerShell
PUPriyanshu UpadhyayView script →