简体   繁体   English

Get-GPO:当前安全上下文未与 Active Directory 域或林关联

[英]Get-GPO : Current security context is not associated with an Active Directory domain or forest

Unable to run Get-GPO on Powershell ISE the error comes: Get-GPO: Current security context is not associated with an Active Directory domain or forest.无法在 Powershell ISE 上运行 Get-GPO,出现错误: Get-GPO:当前安全上下文未与 Active Directory 域或林关联。 Can someone help??有人可以帮忙吗??

Your current user is not a member of the domain against which you're running the query.您当前的用户不是您对其运行查询的域的成员。 Try using a domain user of that domain.尝试使用该域的域用户。 From the get-gpo documentation来自get-gpo 文档

[...] If the domain of the user that is running the session (or, for startup and shutdown scripts, the computer) is different that sales.contoso.com, a trust must exist between the two domains. [...] 如果运行 session(或者,对于启动和关闭脚本,计算机)的用户域与 sales.contoso.com 不同,则两个域之间必须存在信任。 The command retrieves the GPO information by contacting the PDC (in the sales.contoso.com domain).该命令通过联系 PDC(在 sales.contoso.com 域中)来检索 GPO 信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM