[PowerShell]The term 'get-spsite' is not recognized as the name of a cmdlet...

打开一个Windows PowerShell,然后执行Get-SPSite命令时候,报错了:
在这里插入图片描述

The error usually comes if you directly run the command in the Windows PowerShell Console. To resolve to execute the below command first:
Add-PSSnapin Microsoft.Sharepoint.Powershell
Ideally, we should run in SharePoint 2013 Management Shell rather than only in PowerShell console. So Open SharePoint 2013 Management Shell in Administrator mode and then run the Cmdlet the error will not come.

参考链接:
https://www.enjoysharepoint.com/powershell-error-the-term-get-spweb-is-not-recognized-as-the-name-of-a-cmdlet-function-script-file-or-operable-program/

猜你喜欢

转载自blog.csdn.net/WendyXu8230/article/details/82855022
今日推荐