备份-GPO错误

时间:2013-10-11 15:45:11

标签: powershell active-directory

我正在尝试备份域控制器上的所有GPO。 域控制器正在运行Server 2012 Standard Edition。此外;林和域功能级别都在2012年。当我使用命令

Backup-GPO -All -Path $env:StaticPath\$(Get-Date -format d)

我得到以下结果:

Backup-GPO : The specified server cannot perform the requested operation. (Exception from HRESULT: 0x8007003A)
At line:1 char:1
+ Backup-GPO -All -Path C:\Users\Administrator\Desktop
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Backup-GPO], COMException
    + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.GroupPolicy.Commands.BackupGpoComm 
   and

当我使用不那么奇特的路径时,同样的事情发生了。我在TechNet上找到了关于此问题的链接,但它没有包含最终解决方案。此外,升级架构没有用,因为它已经在2012年了。

  

链接:   http://social.technet.microsoft.com/Forums/windowsserver/en-US/1efa4d27-858e-4495-b1ea-9202eeb24cc3/backing-up-gpos-with-server-2012?forum=winserverGP

我正在运行Powershell 3.0。

任何人都可以解释为什么会这样吗?

1 个答案:

答案 0 :(得分:0)

我发现在命令中添加-Domain-Server开关可以解决问题。相当奇怪,因为官方文档将它们声明为可选的。 (正如这里提供的例子所示:

  

http://technet.microsoft.com/en-us/library/ee461052.aspx