Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

How to connect multiple Tenants using PnP PowerShell? #2942

Answered by fastlaneb
Adnanamin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Adnanamin When you connect with "Connect-PnPOnline" you obtain the context for one particular tenant. All PnP commands you execute will execute against the SharePoint context of that tenant. If you would like to use another context you must first "Disconnect-PnPOnline" and then "Connect-PnPOnline" to the additional tenant. You can then use that context.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Adnanamin
Comment options

@sympmarc
Comment options

@Adnanamin
Comment options

Answer selected by Adnanamin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants