简体   繁体   English

Powershell命令查找注册表项高级审核设置(权限)

[英]Powershell command to find registry key advanced audit settings (permissions)

I am trying to use powershell commands to get the registry key advanced audit settings, after a while of testing I have managed to come to this point: 经过一段时间的测试,我设法使用powershell命令来获取注册表项的高级审核设置,我已经设法达到了这一点:

(Get-Acl -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion).AuditToString

Using that command gives me no output (advanced audit settings are in place so I am expecting an output). 使用该命令不会给我任何输出(高级审核设置到位,因此我希望得到一个输出)。 It seems like I am very close with this command and I may be missing a parameter. 似乎我与该命令非常接近,并且可能缺少参数。 I have been at this for a while with no luck so I really appreciate any help. 我来这里已经有一段时间了,没有运气,所以我非常感谢任何帮助。

Let's assume you have an element "AdvancedAudit" at HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion" 假设您在HKLM:\\ SOFTWARE \\ Microsoft \\ Windows \\ CurrentVersion中有一个元素“ AdvancedAudit”

This is how you access it...Hope it helps! 这就是您访问它的方式...希望对您有所帮助!

(Get-ItemProperty -Path  HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion).AdvancedAudit

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

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