I was getting authentication errors stating the credentials did not match using your methods for connecting to the site. No matter what I did I got the same error. I even changed the default authentication settings in Azure. The only way I could get it to work is use the "-UseWeblogin" switch. Then it worked.
Yes, it is possible and it is the way I mostly run PNP PowerShell. Here is an article describing how it is done: www.erwinmcm.com/running-the-various-versions-of-pnp-powershell-side-by-side/
Hi Peter, in our company we have policy which forces us to change password every 3 month, is there is any way to use windows credentials with which you are logged in for example?
My installation is not as straight forward.. I downloaded SharePointPnPPowerShell-3.8.1904.0.msi and asked desktop support to run with admin rights. Then in PowerShell ISE, I ran Install-Module SharePointPnPPowerShellOnline, got an error that PowerShellGet requires NuGet Provider version 2.8.5.201 or newer to interact with NuGet-based repositories. I tried to Install-PackageProvider -Name NuGet-MinimumVersion 2.8.5.201 -Force, also got an error: A positional parameter cannot be found that accepts argument '2.8.5.201'.
you are not the only one ... I am also stuck in the same error. I new in powershell but I found this article that can help www.alitajran.com/unable-to-install-nuget-provider-for-powershell/
Is Execution policy, unrestricted a must? Got an error: access to registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\PowerShell\1\ShellIds\Microsoft.Powershell' is denied on my company laptop
4 ปีที่แล้ว
You could try some of the other settings also. They will give you warnings every time you run a script, but that might be ok.
Cool, finally find the place to learn PowerShell with SharePoint!! Thanks a lot!!
Good luck :-)
Many Thanks Peter!! A very new and efficient way of managing SP! Thank you for sharing this. Regards
This is just the first step in what will hopefully be a series of demos.
I was getting authentication errors stating the credentials did not match using your methods for connecting to the site. No matter what I did I got the same error. I even changed the default authentication settings in Azure. The only way I could get it to work is use the "-UseWeblogin" switch. Then it worked.
same thing happens for me as well
thank you for this, really helpful
Glad you like it :-)
Very helpful for beginners 👍
Exactly! Very helpful for beginners, and finally a place to learn PS with SP. A niche but needed topic, thank you!
Is it perfectly fine to have both the SharePoint PNP Online module, as well as the 2013 module installed at the same time?
Yes, it is possible and it is the way I mostly run PNP PowerShell. Here is an article describing how it is done:
www.erwinmcm.com/running-the-various-versions-of-pnp-powershell-side-by-side/
why was it not enough to set the execution policy to RemoteSigned? What trouble in context to this lesson, would we run into?
Regretfully I have not tested that so I don't really know what the consequences of running remote-signed would be.
Hi Peter, in our company we have policy which forces us to change password every 3 month, is there is any way to use windows credentials with which you are logged in for example?
My installation is not as straight forward.. I downloaded SharePointPnPPowerShell-3.8.1904.0.msi and asked desktop support to run with admin rights. Then in PowerShell ISE, I ran Install-Module SharePointPnPPowerShellOnline, got an error that PowerShellGet requires NuGet Provider version 2.8.5.201 or newer to interact with NuGet-based repositories. I tried to Install-PackageProvider -Name NuGet-MinimumVersion 2.8.5.201 -Force, also got an error: A positional parameter cannot be found that accepts argument '2.8.5.201'.
you are not the only one ... I am also stuck in the same error.
I new in powershell but I found this article that can help
www.alitajran.com/unable-to-install-nuget-provider-for-powershell/
Is Execution policy, unrestricted a must? Got an error: access to registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\PowerShell\1\ShellIds\Microsoft.Powershell' is denied on my company laptop
You could try some of the other settings also. They will give you warnings every time you run a script, but that might be ok.
For New Users in 2023: Install-Module -Name PnP.PowerShell -RequiredVersion 1.12.0
Hello, Anyone get the error when connection 'DTD is prohibited in this XLM Document...
2:36