[BUG] Get-PnPSite: The remote server returned an error: (401) Unauthorized. #3390
Unanswered
yesh-rajawat-robomq
asked this question in
General
Replies: 1 comment
-
I encounter same issue. I'm running the script on Windows server 2016 and PowerShell 7.3.6 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reporting an Issue or Missing Feature
Expected behavior
I should be able to perform all the commands without getting Unauthorized error
This error is not limited to the command Get-PnPSite
Actual behavior
Steps to reproduce behavior
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
Connect-PnPOnline -Url "tenantName-admin.sharepoint.com" -ClientId $clientId -ClientSecret $clientSecret
Get-PnPSite
What is the version of the Cmdlet module you are running?
2.2.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions