简体   繁体   English

powershell端点GPO更新

[英]powershell endpoint GPO update

In my environment we have roughly 20k endpoints. 在我的环境中,我们大约有2万个端点。 GPOs get pushed but not "managed" at least not audited well. GPO受到推动,但没有得到“管理”,至少没有得到很好的审核。 The end goal is to have the ability to query a single endpoint and determine the last GPO update that it received and 'enabled'. 最终目标是具有查询单个端点并确定其接收并“启用”的最新GPO更新的能力。 Ultimately a timestamp-ish type attribute would be optimal because we are trying to look into endpoints that are outliers and have not responding to long time GPOs. 最终,带有时间戳记的type属性将是最佳的,因为我们正在尝试寻找离群值且未响应长时间GPO的端点。 Im trying to get this functionality in Powershell becasue we already have a multithreaded script for our domain attribute collections- i just want to bake this in as well. 我试图在Powershell中获得此功能,因为我们已经有一个用于域属性集合的多线程脚本-我也想将其引入。 I have already looked over the GroupPolicy Module commands and am not really seeing a way to get specific instances for specific endpoints. 我已经查看了GroupPolicy Module命令,但并没有真正看到为特定端点获取特定实例的方法。 I did read about a possibility of GPO updates being stored in the registry? 我确实读过有关GPO更新存储在注册表中的可能性? Any help is very appreciated. 任何帮助都非常感谢。

I would say look at event log of the systems as that will get you a time stamp. 我想说看一下系统的事件日志,因为这会给您一个时间戳。 You are right, you can find it in the registry . 没错,您可以在注册表中找到它。 However, I was not able to see any kind of time stamp when these GPOs were applied. 但是,应用这些GPO时看不到任何时间戳。

It might take a little bit to develop the code as event logs are a bit of a headache to work with in POSH, BUT it will be worth it in the end. 由于在POSH中使用事件日志有些麻烦,因此可能需要花费一些时间来开发代码,但最终还是值得的。 The path for the event logs on a system is this "Applications and Services Logs -> Microsoft -> Windows -> Group Policy". 系统上事件日志的路径是“应用程序和服务日志-> Microsoft-> Windows->组策略”。 The event code by looking at my system is 5117 for the operational event log. 通过查看我的系统,事件代码是5117,用于操作事件日志。 This should be a good starting place for you. 对于您来说,这应该是一个很好的起点。

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

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