Forum Discussion
MREVCI
Oct 21, 2021Copper Contributor
Running a registry based query
Hello, we have some computers which we need to find out the specific registry value in order to be able to update their OS. The path: HKEY_LOCAL_MACHINE\software\policies\Microsoft\Windows\Win...
David Caddick
Oct 21, 2021Iron Contributor
Why not just Advanced Hunting and query the registry from there?
- MREVCIOct 21, 2021Copper ContributorThat's what I am trying to do but I cant find the correct syntax
- David CaddickOct 21, 2021Iron Contributor
Head into https://security.microsoft.com/advanced-hunting
Use this to start with:
>DeviceRegistryEvents>| limit 100Then pivot from there using show filters?- David CaddickOct 25, 2021Iron ContributorFor instance I have recently been wanting to track Macros that have been executed, so I'm looking for this in TrustedRecords using this KQL
DeviceRegistryEvents
| where RegistryKey has @"SOFTWARE\Microsoft\Office\16.0\Word\Security\Trusted Documents\TrustRecords"
| project Timestamp, DeviceName, RegistryValueName