I try to get the snapin "Microsoft.SharePoint.PowerShell" in Powershell but i get an error.
Add-PSSnaping : no snap-ins have been registered for Windows PowerShell version 5
How can I solve this?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You can use the PowerShell Gallery module which can be installed on a per-user basis. This is the preferred installation over the MSI method.
Looks like you are running the powershell on a machine where SharePoint is not installed. You can check by running below command if that snap-in available or not?
Try to run the PowerShell on the server where SharePoint is installed.
If you want to run it from pc then you try this workaround: How to add Add-PSSnapin Microsoft.SharePoint.PowerShell to machine without SharePoint
If you want to use the SPO management then follow the instruction here: Getting started with SharePoint Online Management Shell