我正在尝试备份域控制器上的所有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年了。
我正在运行Powershell 3.0。
任何人都可以解释为什么会这样吗?
答案 0 :(得分:0)
我发现在命令中添加-Domain
和-Server
开关可以解决问题。相当奇怪,因为官方文档将它们声明为可选的。 (正如这里提供的例子所示: