恢复网站集 [英] Restore site collection

查看:69
本文介绍了恢复网站集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将开发网站集恢复到生产中

Hi I am restoring the dev site collection into production

我已经通过中央管理员创建了一个新的网站集,当我尝试将Test.bak还原到新的网站集时,我在Powershell中遇到以下错误.

I have created a new site collection through central admin,when I try restore my Test.bak into new site collection I am getting the below error in powershell.

PS C:\ Windows \ system32> Restore-SPSite http://vedas:35009/sites/newsitecollection/-路径D:\ Backup \ TT2016_Backup \ Test.bak
Restore-SPSite:术语"Restore-SPSite"不被视为cmdlet,函数,脚本文件或可运行程序的名称.检查名称的拼写,或者
包含路径,请确认路径正确,然后重试.
在第1行:char:1
+ Restore-SPSite http://vedas:35009/sites/newsitecollection/-路径D:\ Backu ...
+ ~~~~~~~~~~~~~~
    + CategoryInfo         :ObjectNotFound:((还原SPSite:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException
 

PS C:\Windows\system32> Restore-SPSite http://vedas:35009/sites/newsitecollection/ -Path D:\Backup\TT2016_Backup\Test.bak
Restore-SPSite : 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:1
+ Restore-SPSite http://vedas:35009/sites/newsitecollection/ -Path D:\Backu ...
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Restore-SPSite:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 

推荐答案

您是如何打开Powershell控制台的?

how did you opened the powershell console?

打开SP Powershell或使用

Open SP Powershell or use

add-pssnappin microsoft.sharepoint.powershell以加载上下文

add-pssnappin microsoft.sharepoint.powershell to load the context


这篇关于恢复网站集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆