Connect-PnPOnline: Parameter cannot be found that matches 'Interactive' #570
Unanswered
boyeatssteak
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I checked this both in PNP 1.4.0 and in 1.5.0, and my own tenant - works fine. PS version is 5.1 with the OS as Windows 10 Pro. Highly doubt that's an OS/PS version issue. Sounds like a broken installation of PNP on the client's side. The Interactive parameter is definitely a thing, so it's not as if the successful connections was a fluke that shouldn't work. If it were me I'd look at a reinstall of the module on their end; something is amiss there. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Super short version:
Connect-PnPOnline -Url $url -Interactive
errors with this message:Environemnt:
Microsoft Windows
PnP.PowerShell Module 1.5.0
More Details:
I'm working on a PS script to create a document library for a client. I am able to use that command to connect to my sandbox MS env without any issues. My client would prefer not to grant me SharePoint Admin rights in their org (which is understandable). I'd asked them to run that command, and they sent me the above screenshot of it erroring.
The client uses MS MFA for login, and I've configured my sandbox in the same way.
As I understand it, I need to be able to access both SharePoint (to create the library) and MS Graph (for applying permissions), so the
-UseWebLogin
is not sufficient for the task (even though when my client tested, it did successfully create a cookie-based session).To me, it seems like it errors in the PnP.PowerShell module, but we are both running 1.5.0. Does PnP.PowerShell have dependencies that may be missing on my client's machine that provide support for that
-Interactive
param?I've requested they run
Register-PnPManagementShellAccess
(as recommended in the Connect-PnPOnline docs: Example 10), and tried requesting they install SharePoint Online Management Shell (as recommended for similar issue here). Neither of these had any effect however.I am on MacOS, and using PowerShell 7.1.3, and also am testing on Windows via Parallels which has Windows PowerShell 5.1.19041.1.
In both of my local environments, I can use the
-Interactive
param without issue to connect to my sandbox, and to request connection to their prod MS365 service.Would the OS version matter? Would the PS version matter?
I appreciate any advice!
Beta Was this translation helpful? Give feedback.
All reactions