我正在尝试备份域控制器上的所有GPO。域控制器正在运行Server 2012标准版。此外,森林和领域功能级别都在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。
有人能解释一下为什么会发生这种事吗?
发布于 2013-10-15 18:30:05
我发现将-Domain和-Server交换器添加到命令中可以解决这个问题。很奇怪,因为官方文件说它们是可选的。(如这里提供的示例所示:
http://technet.microsoft.com/en-us/library/ee461052.aspx
https://stackoverflow.com/questions/19322178
复制相似问题