[英]Backup-GPO error
I am trying to backup all the GPOs on my Domain Controller. 我试图备份我的域控制器上的所有GPO。 The Domain Controller is running Server 2012 Standard Edition.
域控制器正在运行Server 2012 Standard Edition。 Furthermore;
此外; both the Forest and the Domain Functional level are on 2012. When I use the command
森林和域功能级别都在2012年。当我使用以下命令时
Backup-GPO -All -Path $env:StaticPath\$(Get-Date -format d)
I get the following result: 我得到以下结果:
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
The same thing happens when I use a less exotic path. 当我使用较少异国情调的路径时,也会发生同样的事情。 I found a link on TechNet regarding this issue but it did not contain a final solution.
我在TechNet上找到了有关此问题的链接,但其中没有最终解决方案。 Also, upgrading the schema is no use as it is on 2012 already.
此外,升级架构已无用,因为2012年已经如此。
Link: http://social.technet.microsoft.com/Forums/windowsserver/en-US/1efa4d27-858e-4495-b1ea-9202eeb24cc3/backing-up-gpos-with-server-2012?forum=winserverGP
链接: http : //social.technet.microsoft.com/Forums/windowsserver/en-US/1efa4d27-858e-4495-b1ea-9202eeb24cc3/backing-up-gpos-with-server-2012? forum = winserverGP
I am running Powershell 3.0. 我正在运行Powershell 3.0。
Can anyone explain why this is happening? 谁能解释为什么会这样?
I found that adding the -Domain
and the -Server
switches to the command fixed the issue. 我发现将
-Domain
和-Server
开关添加到命令可以解决此问题。 Rather strange as the official documentation states them as optional. 相当奇怪,因为官方文档指出它们是可选的。 (As seen in the provided examples right here:
(如此处提供的示例所示:
http://technet.microsoft.com/en-us/library/ee461052.aspx
http://technet.microsoft.com/en-us/library/ee461052.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.