Microsoft 365 Defender - Advanced Hunting - DeviceRegistryEvents not detecting new keys added with powershell
After manually adding a new registry key on a device enrolled in defender for endpoints, I am wanting to run a KQL query using the DeviceRegistryEvents table to view the event with the RegistryKeyCreated/RegistryValueSet action types. However, I have tried both using the New-ItemProperty cmdlet method as well as the reg add method and neither are appearing in the KQL results even after waiting 24 hours. I can see registry keys being created with other programs using KQL and I can see the keys which I have manually created in the registry using regedit, but the events for these manually created keys are not appearing when querying the DeviceRegistryEvents table. Is there a particular query required for viewing events for these manually created keys or is this a bug?