Exporting custom list of Teams files into local drive and then delete the Teams?

EnterpriseArchitect 5,336 Reputation points
2024-01-15T12:19:46.74+00:00

Hello people,

I need assistance and suggestions in exporting a list of Teams site file content to the local F:\Backup\Teams directory.

After a successful export/backup, the Teams site will be deleted.

How can this be accomplished using the PowerShell script? https://pnp.github.io/powershell/

Input Source: Teams-ToDelete.CSV

Group Name, Mail
ImportantGroup, Important@BigCompany.onmicrosoft.com
IT-Group, IT-Group@BigCompany.com
Calendly-users, calendly.comactivityhub-room4@MyCompany.onmicrosoft.com
All-Employees Teams, All.Team@MyParentCompany.com

Thank you, in advance.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,978 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,878 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,590 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,466 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.