PowerShell

Extracting SharePoint File Version History Using PowerShell

SharePoint keeps every prior version of a file, but the built-in UI only shows you version history one file at a time. If you need it for an audit, a bulk export, or to check who changed what across a whole library, you’re pulling it with a script instead of clicking through the interface. Three

Extracting SharePoint File Version History Using PowerShell Read More »

SharePoint Attachments Operations with PnP.js in React

List attachments keep a file tied directly to a specific item (a screenshot on a bug, a resume on a candidate record) without setting up a separate document library. This covers uploading, reading, and deleting them with PnP.js inside a React-based SPFx component, plus batching when you’re handling more than one file at a time.

SharePoint Attachments Operations with PnP.js in React Read More »

How to Avoid List Throttling in SharePoint

Worth a direct correction before anything else: the “indexed column” PowerShell example that circulates for this topic (`Set-PnPListItem` with a value) doesn’t create an index at all. It just sets a field’s value on one item, something entirely different. This post covers the real mechanism for indexing a column, the real cap that mechanism runs

How to Avoid List Throttling in SharePoint Read More »

Regular Expressions (Regex) : Quick Guide

Regex looks intimidating until you’ve internalized maybe a dozen symbols, after that it’s just the fastest way to validate, search, or extract text by pattern instead of writing a string-parsing function by hand. This is a working reference: the symbols that come up constantly, three real examples in different languages, and when it’s actually the

Regular Expressions (Regex) : Quick Guide Read More »

All about SharePoint Permission Roles

SharePoint ships with ten built-in permission levels (Full Control down to Restricted Read) covering most access-control scenarios without needing a custom permission level. Here’s what each one actually grants, and how to assign them via PowerShell in both SharePoint Online and on-premises. In this post: The ten built-in permission levels · Assigning a role in

All about SharePoint Permission Roles Read More »

SharePoint ‘Save Site as Template’ Challenges

“Save Site as Template” used to be the easy answer to “how do I spin up another site that looks like this one”: export the structure, lists, and content types to a .wsp file, apply it to a new site, done. It’s still there in SharePoint On-Premises. In SharePoint Online, it’s effectively gone for modern

SharePoint ‘Save Site as Template’ Challenges Read More »

Methods on how to Add Attachments to SharePoint List

SharePoint doesn’t have one “add attachment” button that works everywhere, which method you reach for depends on whether you’re writing client-side JavaScript, building an SPFx web part, or automating something from a script. The three approaches below all do the same thing: attach a file to a specific list item. The difference is what kind

Methods on how to Add Attachments to SharePoint List Read More »

Remove All Permissions in a SharePoint Site Collection

Sometimes a SharePoint site collection needs to be locked down to just you: before a migration, before deletion, or because everyone who had a reason to be in there no longer does. This covers both ways to strip every permission except your own: through the admin center by hand, or with PowerShell when you’re doing

Remove All Permissions in a SharePoint Site Collection Read More »

How to Migrate SharePoint Online Content to Another Tenant: All Available Options

Moving SharePoint content between tenants (for a merger, acquisition, or restructuring) has more options than it used to, ranging from a manual drag-and-drop to a native Microsoft-managed pipeline. What you keep (permissions, version history, workflows) varies a lot between them, which is the real deciding factor, not just price. In this post: Native Microsoft 365

How to Migrate SharePoint Online Content to Another Tenant: All Available Options Read More »

How to Export SharePoint Site Users to an Excel Spreadsheet

Worth a direct correction before anything else: neither the classic on-premises COM-automation script nor the “PnP PowerShell” example commonly shown for this actually produces a real Excel file without a caveat. The COM approach genuinely needs Excel installed on the machine running it, and the PnP example usually exports to CSV, not a true `.xlsx`,

How to Export SharePoint Site Users to an Excel Spreadsheet Read More »