Skip to content

Instantly share code, notes, and snippets.

@bradbrowne
Last active June 25, 2018 23:46
Show Gist options
  • Save bradbrowne/f71e6915bc6e92bf8f3a59fd00c82f15 to your computer and use it in GitHub Desktop.
Save bradbrowne/f71e6915bc6e92bf8f3a59fd00c82f15 to your computer and use it in GitHub Desktop.
Get URL associations for the default browser selected by a user
Get-ItemProperty Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\URLAssociations\http\UserChoice
@bradbrowne
Copy link
Author

Hash         : LQNnW9P6aUE=
ProgId       : FirefoxURL-308046B0AF4A39CB
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\URLAssociations\http\UserChoice
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\URLAssociations\http
PSChildName  : UserChoice
PSProvider   : Microsoft.PowerShell.Core\Registry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment