Share via

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

EnterpriseArchitect 5,761 Reputation points
Jan 15, 2024, 12:19 PM

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, ******@BigCompany.onmicrosoft.com
IT-Group, ******@BigCompany.com
Calendly-users, ******@MyCompany.onmicrosoft.com
All-Employees Teams, ******@MyParentCompany.com

Thank you, in advance.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,895 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,406 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,230 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,894 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.