Facing issue in installing the Pnp PowerShell Module for SharePoint 2013/Online

%3CLINGO-SUB%20id%3D%22lingo-sub-325405%22%20slang%3D%22en-US%22%3EFacing%20issue%20in%20installing%20the%20Pnp%20PowerShell%20Module%20for%20SharePoint%202013%2FOnline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-325405%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20facing%20issue%20in%20installing%20the%20PnP%20PowerShell%20module%20for%20SharePoint%202013%2Fonline.%20Please%20let%20me%20know%20if%20anyone%20has%20faced%20such%20issue%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F107363%22%20target%3D%22_blank%22%3E%40Chendrayan%20Venkatesan%3C%2FA%3E%26nbsp%3B.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EError%20Description%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20Install-Module%20SharePointPnPPowerShell2013%3CBR%20%2F%3EPackageManagement%5CInstall-Package%20%3A%20No%20match%20was%20found%20for%20the%20specified%20search%20criteria%20and%20module%20name%20'SharePointPnPPowerShell2013'.%20Try%20Get-PSRepository%20to%20see%20all%3CBR%20%2F%3Eavailable%20registered%20module%20repositories.%3CBR%20%2F%3EAt%20C%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%5CPowerShellGet%5C1.0.0.1%5CPSModule.psm1%3A1809%20char%3A21%3CBR%20%2F%3E%2B%20...%20%24null%20%3D%20PackageManagement%5CInstall-Package%20%40PSBoundParameters%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20ObjectNotFound%3A%20(Microsoft.Power....InstallPackage%3AInstallPackage)%20%5BInstall-Package%5D%2C%20Exception%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20NoMatchFoundForCriteria%2CMicrosoft.PowerShell.PackageManagement.Cmdlets.InstallPackage%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20Install-Module%20SharePointPnPPowerShellOnline%3CBR%20%2F%3EPackageManagement%5CInstall-Package%20%3A%20No%20match%20was%20found%20for%20the%20specified%20search%20criteria%20and%20module%20name%20'SharePointPnPPowerShellOnline'.%20Try%20Get-PSRepository%20to%20see%3CBR%20%2F%3Eall%20available%20registered%20module%20repositories.%3CBR%20%2F%3EAt%20C%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%5CPowerShellGet%5C1.0.0.1%5CPSModule.psm1%3A1809%20char%3A21%3CBR%20%2F%3E%2B%20...%20%24null%20%3D%20PackageManagement%5CInstall-Package%20%40PSBoundParameters%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20ObjectNotFound%3A%20(Microsoft.Power....InstallPackage%3AInstallPackage)%20%5BInstall-Package%5D%2C%20Exception%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20NoMatchFoundForCriteria%2CMicrosoft.PowerShell.PackageManagement.Cmdlets.InstallPackage%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20%24PSVersionTable.PSVersion%3C%2FP%3E%3CP%3EMajor%20Minor%20Build%20Revision%3CBR%20%2F%3E-----%20-----%20-----%20--------%3CBR%20%2F%3E5%201%2017134%20407%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EPrabhu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-325405%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Emodule%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%20PowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661048%22%20slang%3D%22en-US%22%3ERe%3A%20Facing%20issue%20in%20installing%20the%20Pnp%20PowerShell%20Module%20for%20SharePoint%202013%2FOnline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661048%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F168054%22%20target%3D%22_blank%22%3E%40Prabhu%20Nehru%3C%2FA%3E%26nbsp%3B%20Did%20you%20manage%20to%20solve%20this.%20I%20had%20similar%20issue%20as%20I%20was%20behind%20coporate%20proxy%20which%20needs%20credentials%20for%20authentication.%20I%20set%20proxy%20credentials%20as%20below%3A%3C%2FP%3E%24Wcl%20%3D%20new-object%20System.Net.WebClient%20%24Wcl.Headers.Add(%E2%80%9Cuser-agent%E2%80%9D%2C%20%E2%80%9CPowerShell%20Script%E2%80%9D)%20%24Wcl.Proxy.Credentials%20%3D%20%5BSystem.Net.CredentialCache%5D%3A%3ADefaultNetworkCredentials%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-662641%22%20slang%3D%22en-US%22%3ERe%3A%20Facing%20issue%20in%20installing%20the%20Pnp%20PowerShell%20Module%20for%20SharePoint%202013%2FOnline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-662641%22%20slang%3D%22en-US%22%3EYup%20that%20works.%20Also%20we%20can%20try%20installing%20the%20modules%20by%20downloading%20the%20.msi%20files%20from%20the%20github%20which%20is%20pretty%20cool.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Freleases%2Ftag%2F3.9.1905.3%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Freleases%2Ftag%2F3.9.1905.3%3C%2FA%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269262%22%20slang%3D%22en-US%22%3ERe%3A%20Facing%20issue%20in%20installing%20the%20Pnp%20PowerShell%20Module%20for%20SharePoint%202013%2FOnline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269262%22%20slang%3D%22en-US%22%3EUpgrade%20PowerShell%20version%20to%207%5E.%20and%20run%20the%20command%3CBR%20%2F%3EInstall-Module%20-Name%20PnP.PowerShell%3C%2FLINGO-BODY%3E
Contributor

Hi All,

 

I am facing issue in installing the PnP PowerShell module for SharePoint 2013/online. Please let me know if anyone has faced such issue @Chendrayan Venkatesan .

 

Error Description:

PS C:\WINDOWS\system32> Install-Module SharePointPnPPowerShell2013
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'SharePointPnPPowerShell2013'. Try Get-PSRepository to see all
available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

 

 

PS C:\WINDOWS\system32> Install-Module SharePointPnPPowerShellOnline
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'SharePointPnPPowerShellOnline'. Try Get-PSRepository to see
all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

 

 

PS C:\WINDOWS\system32> $PSVersionTable.PSVersion

Major Minor Build Revision
----- ----- ----- --------
5 1 17134 407

 

 

 

Thanks,

Prabhu

3 Replies

@Prabhu Nehru  Did you manage to solve this. I had similar issue as I was behind coporate proxy which needs credentials for authentication. I set proxy credentials as below:

$Wcl = new-object System.Net.WebClient $Wcl.Headers.Add(“user-agent”, “PowerShell Script”) $Wcl.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
Yup that works. Also we can try installing the modules by downloading the .msi files from the github which is pretty cool.

https://github.com/SharePoint/PnP-PowerShell/releases/tag/3.9.1905.3
Upgrade PowerShell version to 7^. and run the command
Install-Module -Name PnP.PowerShell