Powershell Error “The term 'Get-SPWeb' is not recognized as the name of a cmdlet, function…”

后端 未结 3 1384
臣服心动
臣服心动 2020-12-25 10:22

I just typed the follow to try and get my SharePoint site:

$spWeb = Get-SPWeb -Identity \"http://nycs00058260/sites/usitp\"

It gave me the

相关标签:
3条回答
  • 2020-12-25 10:59

    Instead of Windows PowerShell, find the item in the Start Menu called SharePoint 2013 Management Shell:

    0 讨论(0)
  • 2020-12-25 11:07

    I think this need to be run from the Management Shell rather than the console, it sounds like the module isn't being imported into the Powershell console. You can add the module by running:

    Add-PSSnapin Microsoft.Sharepoint.Powershell
    

    in the Powershell console.

    0 讨论(0)
  • Run this script from SharePoint 2010 Management Shell as Administrator.

    0 讨论(0)
提交回复
热议问题