简体   繁体   English

在GPO中获取特定的规则ID

[英]Get a specific Rule ID in a GPO

i am currently working on Windows Active Directory, and i would like to know if it's possible to get the id of a rule defined in a GPO. 我目前正在Windows Active Directory上工作,我想知道是否有可能获取GPO中定义的规则的ID。 Because i would like write some powershell scripts to check if some rules are activated or not. 因为我想编写一些powershell脚本来检查是否激活了某些规则。 I've found out that it was linked into the registers but only for the current user but i don't want to run my script for every user but only on the server domain or domain administrator account. 我发现它已链接到寄存器中,但仅针对当前用户,但我不想为每个用户运行脚本,而仅在服务器域或域管理员帐户上运行。

For example i've written a GPO telling that every basic user should not have the right to use the task manager i can get a report on my GPO containing list of users which are submitted to this rule, GPOID, and other information but no information about the rule except its name which is in this case "Disable TaskMgr" 例如,我写了一个GPO,告诉每个基本用户都无权使用任务管理器,我可以获得关于GPO的报告,其中包含提交给该规则的用户列表,GPOID和其他信息,但没有信息。关于规则的名称除外,在本例中为“ Disable TaskMgr”

作为组策略cmdlet的一部分的Get-GPO命令似乎返回了一个GUID,该GUID调用了ID和状态。

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

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