Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
94 views
in SharePoint Server by 5 20 37

I am trying to get SharePoint site collection Get-SPSite using PowerShell in Windows PowerShell ISE but I am getting the below error 

the term 'Get-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or of a path was included, verify that the path is correct and try again. 

How to add snippet SharePoint 2019 in Windows Powershell to can use SharePoint server 2013/2016/2019 cmdlet in Window PowerShell ISE?

 


1 Answer

1 like 0 dislike
by 5 20 37

How to add snippet SharePoint 2019 in Windows Powershell ISE?

To can run SharePoint 2019/2016 PowerShell cmdlet in Windows Powershell ISE, you have to do the following:

  1. Run Windows Powershell ISE As Administrator
  2. You must add Powershell Snapin using (add-pssnapin) to import the Microsoft.SharePoint.PowerShell as below

     Add-PSSnapin Microsoft.SharePoint.PowerShell
    

Hope it helps

If you don’t ask, the answer is always NO!
...