Restore-SPSite -Identity http:/snk145:60000/ -Path "D:/MS.bak"
I am trying to restore a site collection (SharePoint 2010) to other from a backup file,
The term 'Restore-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ Restore-SPSite <<<< -Identity http:/snk145:60000/ -Path "D:/MS.bak"
+ CategoryInfo : ObjectNotFound: (Restore-SPSite:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
What Should I do?
UPDATE
As Alex said, got the command worked, however getting another error as follows
Restore-SPSite -Identity http:/snk145:60000/ -Path "D:/MS.bak"
Confirm
Are you sure you want to perform this action?
Performing operation "Restore-SPSite" on Target "http:/son1834:60000/".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
Restore-SPSite : Invalid URI: The Authority/Host could not be parsed.
At line:1 char:15
+ Restore-SPSite <<<< -Identity http:/snk145:60000/ -Path "D:/MS.bak"
+ CategoryInfo : InvalidData: (Microsoft.Share...dletRestoreSite:SPCmdletRestoreSite) [Restore-SPSite], U
riFormatException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreSite
What next?