Skip to main content

2 posts tagged with "SharePoint"

View All Tags

Archiving OneDrive to SharePoint with PowerShell and Microsoft Graph

· 9 min read

When someone leaves an organisation, their OneDrive can contain files that the rest of the team still needs. Downloading those files and uploading them to SharePoint works, but it isn't a particularly enjoyable way to spend an afternoon - especially when you have several accounts to deal with.

Microsoft Graph can copy the content directly between OneDrive and SharePoint without sending the files through your computer. These scripts wrap that process so you can archive one user's content, or queue a batch and check its progress later.

Auditing External SharePoint Sharing with PowerShell and Microsoft Graph

· 5 min read

Sharing links make collaboration easy, but they can also leave files accessible to people outside your organisation. When you need a tenant-wide view of where external access exists, checking sites one at a time quickly becomes tedious.

This PowerShell script uses Microsoft Graph to inventory SharePoint sites and inspect the sharing permissions on their drive items. It reports anonymous links and external direct shares, and can optionally include internal sharing links in a CSV report.