Forum Discussion
Connect-PnPOnline problem after installing PnP.Powershell
Hi
These commands can be changed and update.
the easy way to see what are the command supported by your version is using Help
help Connect-PnPOnline -Examples
You will see the different methods and ways to connect.
Connect-PnPOnline -Url "https://contoso.sharepoint.com" -Credentials (Get-Credential)
Hope this help
----------------
If this answer help, please mark it as Best Response
- Paul ChapmanFeb 15, 2021Iron Contributor
farismalaeb Thanks Faris. I'm a big fan of the -examples tag 🙂
In this case it looks like the module I had installed first (SharePointPnPPowerShell) has been superceded by an updated module (PnP.Powershell). I've uninstalled the earlier module, and now in the new module (PnP.Powershell) I no longer see a -scopes option. So I am working on the assumption that the video I watched (and referenced in my first post) was using an earlier version of PnP.Powershell that still had a -scopes option. But that may be wrong!
- farismalaebFeb 15, 2021Steel Contributor
It's totally possible, Check this one
https://www.powershellgallery.com/packages?q=PnP.PowerShell
This link is for the PSGallary which includes all the previous versions of PnP.Powershell, you can try the old version, which is not a recommended thing to do.
I guess you need to tune the connection to be able to connect using the available parameters.
-------------
If the answer was helpful, Please click on Best Response.