![](/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.