我对powershell很陌生。我试图使用stsadm命令备份sharepoint站点,但出于某些原因,我一直给出一些错误。
以下是我正在做的事情:
PS C:\Users\Administrator> Stsadm -o-url >http://server< name:端口-文件名路径\文件名用于备份文件
下面是我遇到的错误:
术语“stsadm”不被识别为cmdlet、函数、脚本文件或可操作程序的名称。检查名称或路径的拼写,确认路径是否正确,然后重试,
一行:1字符:7
+ stsadm <<<< -o备份-url >http://server< name:用于备份文件的端口-__文件名路径\文件名
+类别信息: ObjectNotFound:[],CommandNotFoundException
_+FullyQualifiedErrorID : CommandNotFoundException_发布于 2012-11-06 02:31:20
Stsadm不是powershell脚本,它是位于C:\Program \Common\Microsoft Shared\web服务器扩展名\12或14 'hive‘中的一个可执行文件。
通常,在运行powershell时,您将避免调用stsadm,因为在SharePoint 2010中它实际上是不受欢迎的。
但是,您可以更改目录以定位可执行文件,并在需要时调用它。
下面是powershell中的stsadm等价物列表。
发布于 2012-11-06 19:14:47
查看这篇博文=>备份并用PowerShell:http://www.bradleyschacht.com/backup-and-restore-sharepoint-2010-site-collection-with-powershell/还原SharePoint 2010站点集:也许,这就是您正在寻找的
https://stackoverflow.com/questions/13243435
复制相似问题