Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
备份Sharepoint 2010(使用Powershell-备份SPFarm)_Sharepoint_Powershell_Sharepoint 2010_Windows Server 2008 - Fatal编程技术网

备份Sharepoint 2010(使用Powershell-备份SPFarm)

备份Sharepoint 2010(使用Powershell-备份SPFarm),sharepoint,powershell,sharepoint-2010,windows-server-2008,Sharepoint,Powershell,Sharepoint 2010,Windows Server 2008,我在ServerFault上问了这个问题,但没有得到任何回复,我知道这是命令行,但他们仍然可以回答,这里有人知道吗 我已经运行了以下()命令: 但是得到这个错误: Backup-SPFarm : Object reference not set to an instance of an object. At line:1 char:14 + Backup-SPFarm <<<< -Directory \\SHAREPOINTSERV\Backups -BackupMet

我在ServerFault上问了这个问题,但没有得到任何回复,我知道这是命令行,但他们仍然可以回答,这里有人知道吗

我已经运行了以下()命令:

但是得到这个错误:

Backup-SPFarm : Object reference not set to an instance of an object.
At line:1 char:14
+ Backup-SPFarm <<<<  -Directory \\SHAREPOINTSERV\Backups -BackupMethod full
    + CategoryInfo          : InvalidData: (Microsoft.Share...mdletBackupFarm:SPCmdletBackupFarm) [Backup-SPFarm], NullReferenceException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletBackupFarm

在technet站点上的问题中,您转储了一个堆栈跟踪,该跟踪显示从注册表访问配置数据库信息时出错(我猜是在HKEY\U LOCAL\U MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Secure\ConfigDB)


能否检查此密钥的权限和w3wp进程的标识?

是否在同一系统上安装了SQL Server和SharePoint产品?或者这是一个具有多台服务器的服务器场部署

如果是场部署,则必须提供备份文件夹的UNC路径。至少是这样

Get-Help Backup-SPFarm -Parameter Directory

另外,你能发布

Backup-SPFarm -Directory E:\Backups -BackupMethod Full -Verbose

不幸的是,正如我所怀疑的那样,这很简单,但却花了很长时间才解决(多亏了微软令人惊讶的有用错误消息:p)

我以前打开过Sharepoint Management Shell,但作为一个不同的用户,这意味着我确实看到了一条重要的信息,它将为我指明正确的方向

当我设置服务器时,除了设置服务帐户(我想我是以我的用户身份登录的,不是企业管理员)之外,不需要登录SQL server,而企业管理员没有任何SQL server权限

我怀疑Microsoft.SharePoint.Powershell中的
Add-pssnaps行没有正常工作,尽管它说工作正常

当我试图通过powershell编辑器创建powershell脚本时,我从未以管理员用户身份打开Sharepoint Management Shell

一旦我在Sharepoint Management Shell中看到这条消息,问题就解决了


如果微软能显示这个而不是对象引用消息,那就太好了

对不起,如果这有点误导,那不是我的问题。有人贴了。哇,我才是道歉的人。我应该把这个问题读得更清楚。当你写这个问题时,我尝试了cmdlet备份,它在我的虚拟机上运行,因此,很抱歉,不知道为什么它不起作用。奇怪的是,也许我缺少了某种先决条件,但我不知道它会是什么。SQL Server在同一台机器上。我已经编辑了我的答案,以包含详细的输出,但它没有说明任何情况。
Get-Help Backup-SPFarm -Parameter Directory
Backup-SPFarm -Directory E:\Backups -BackupMethod Full -Verbose