Associate
- Joined
- 20 Aug 2007
- Posts
- 1,333
- Location
- Solihull
Hi guys, got an issue which I need help with - I'm trying to do some work on a SharePoint site collection using the specific SharePoint powershell which is called SharePoint Online Management Shell.
I am trying to use a cmdlet called Get-SPWeb but every time I try it, I get an unrecognized cmdlet message. Apparently this normally happens due to missing cmdlets, and I am recommended to run this command:
Add-PSSnapin Microsoft.Sharepoint.Powershell
I believe that should import the cmdlets (including Get-SPWeb). Instead I just get ANOTHER error message which is where I'm now stuck, this is the error message:
PS C:\WINDOWS\system32> Add-PSSnapin Microsoft.SharePoint.Powershell
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
At line:1 char:1
+ Add-PSSnapin Microsoft.SharePoint.Powershell
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.SharePoint.Powershell:String) [Add-PSSnapin], PSArgumentExce
ption
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
I've tried this lots of times on 4 different windows 10 machines and have no idea what could be causing the issue. If anyone could help it would be much appreciated!
Thanks in advance!
Jamie
I am trying to use a cmdlet called Get-SPWeb but every time I try it, I get an unrecognized cmdlet message. Apparently this normally happens due to missing cmdlets, and I am recommended to run this command:
Add-PSSnapin Microsoft.Sharepoint.Powershell
I believe that should import the cmdlets (including Get-SPWeb). Instead I just get ANOTHER error message which is where I'm now stuck, this is the error message:
PS C:\WINDOWS\system32> Add-PSSnapin Microsoft.SharePoint.Powershell
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
At line:1 char:1
+ Add-PSSnapin Microsoft.SharePoint.Powershell
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.SharePoint.Powershell:String) [Add-PSSnapin], PSArgumentExce
ption
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
I've tried this lots of times on 4 different windows 10 machines and have no idea what could be causing the issue. If anyone could help it would be much appreciated!
Thanks in advance!
Jamie