Skip to content

Instantly share code, notes, and snippets.

@argctl
Last active February 1, 2026 05:00
Show Gist options
  • Select an option

  • Save argctl/aaa45de8d462606e3ed67d525fbfca56 to your computer and use it in GitHub Desktop.

Select an option

Save argctl/aaa45de8d462606e3ed67d525fbfca56 to your computer and use it in GitHub Desktop.
mic_check.ps1
#quickly check what has used your mic through windows
Get-ChildItem "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone\NonPackaged" |
ForEach-Object {
$props = Get-ItemProperty $_.PSPath
[PSCustomObject]@{
App = $_.PSChildName
Started = $props.LastUsedTimeStart
Stopped = $props.LastUsedTimeStop
InUse = $props.LastUsedTimeStop -eq 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment