I just typed the follow to try and get my SharePoint site:
$spWeb = Get-SPWeb -Identity "http://nycs00058260/sites/usitp"
It gave me the following error
The term 'Get-SPWeb' is not recognized as the name of a cmdlet, function, script...
The url is correct so why am I getting this error?
This question is related to
sharepoint
powershell
powershell-2.0
Run this script from SharePoint 2010 Management Shell as Administrator.
Source: Stackoverflow.com