Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Last active May 18, 2025 12:09
Show Gist options
  • Save chuongmep/abb398d7807797d64f08ae31ce129a1e to your computer and use it in GitHub Desktop.
Save chuongmep/abb398d7807797d64f08ae31ce129a1e to your computer and use it in GitHub Desktop.
$parentKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Bluetooth\ExceptionDB\Addrs"
if (Test-Path $parentKey) {
Get-ChildItem -Path $parentKey | ForEach-Object {
Remove-Item -Path $_.PsPath -Recurse -Force
}
Write-Output "All subkeys under 'Addrs' deleted."
} else {
Write-Output "'Addrs' key not found."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment