来自远程计算机的powershell备份网站集 [英] powershell backup site collection from remote computer

查看:157
本文介绍了来自远程计算机的powershell备份网站集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试从远程计算机上获取网站集的BackUp,但是我收到的错误是我不确定脚本是:

 Invoke-Command -ComputerName remotecomputername -ScriptBlock {Backup-SPSite -Identityhttp:// remotecomputername:8080-PathC:\ Users \ username \Documents\SiteBackUp\BackUp8080} -credential username 



错误是:

术语Backup-SPSite未被识别为cmdlet,函数,脚本文件或可操作程序的名称。检查名称的sp 
elling,或者如果包含路径,请验证路径是否正确,然后重试。
+ CategoryInfo:ObjectNotFound:(Backup-SPSite:String)[],CommandNotFoundException
+ FullyQualifiedErrorId:CommandNotFoundException



问候,

Vikram

解决方案

我不是一个大的SharePoint大师,但我认为你不能直接这样做。

1 )您必须启用PSRemoting: http://technet.microsoft.com/en-us/library/hh849694 .aspx [ ^ ]

2)进入远程会话: http://technet.microsoft.com /en-us/library/hh849707.aspx [ ^ ]或导入远程会话: http:// tec hnet.microsoft.com/en-us/library/hh849970.aspx [ ^ ]。请参阅此文章: http://technet.microsoft.com/en-us /library/gg550867(v=office.14).aspx [ ^ ]并搜索 Backup-SPSite

您可能会感兴趣的其他链接: HTTP://blogs.technet .com / b / heyscriptingguy / archive / 2010/09/20 / get-started-managing-sharepoint-2010-with-powershell-cmdlets.aspx [ ^ ]

Hi,

I am trying to take a BackUp of a Site Collection from a remote computer, but I am getting a error that i am not sure of the script is:

Invoke-Command -ComputerName remotecomputername -ScriptBlock {Backup-SPSite -Identity "http://remotecomputername:8080" -Path "C:\Users\username\Documents\SiteBackUp\BackUp8080"} -credential username


the error is get is :

The term 'Backup-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the sp
elling of the name, or if a path was included, verify that the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Backup-SPSite:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Regards,
Vikram

解决方案

I am not a big SharePoint guru, but I think you can''t do this directly.
1) You have to enable PSRemoting: http://technet.microsoft.com/en-us/library/hh849694.aspx[^]
2) Than enter remote session: http://technet.microsoft.com/en-us/library/hh849707.aspx[^] or import remote session: http://technet.microsoft.com/en-us/library/hh849970.aspx[^]. See this article: http://technet.microsoft.com/en-us/library/gg550867(v=office.14).aspx[^] and search for Backup-SPSite.
Other link you might find interesting: http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/20/get-started-managing-sharepoint-2010-with-powershell-cmdlets.aspx[^]


这篇关于来自远程计算机的powershell备份网站集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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