![](/img/trans.png)
[英]Powershell command to find registry key advanced audit settings (permissions)
[英]Windows command to display advanced audit settings of Registry Keys
使用Windows上的命令,我试图显示注册表项的高级审核设置。 我曾尝试在Powershell和具有管理员权限的cmd上执行此操作,但是这样做并没有运气。 经过大量的研究和测试,我设法使用以下命令在Powershell和CMD上使用以下命令来显示注册表项权限,我感觉自己非常接近,但似乎找不到正确的参数。
电源外壳:
(Get-Acl -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion).AuditToString
命令提示符:
C FOR /F "tokens=3 delims= " %A IN ('reg.exe query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography" /v "MachineGuid"')`
DO @icacls %ALLUSERSPROFILE%\Microsoft\Crypto\RSA\MachineKeys\76944fb33636aeddb9590521c2e8815a_%A
我尝试了这个:
PS C:\> (get-acl hklm:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run -audit).GetAuditRules($true,$true,[System.Security.Principal.NTAccount])
RegistryRights : FullControl
AuditFlags : Success
IdentityReference : fffff\tom
IsInherited : False
InheritanceFlags : ContainerInherit
PropagationFlags : None
这是您所期望的吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.