Skip to content

Instantly share code, notes, and snippets.

@hackingbutlegal
Created February 12, 2013 04:22
Show Gist options
  • Select an option

  • Save hackingbutlegal/4760222 to your computer and use it in GitHub Desktop.

Select an option

Save hackingbutlegal/4760222 to your computer and use it in GitHub Desktop.
Windows: Check out some registry values
import _winreg
explorer = _winreg.OpenKey(
_winreg.HKEY_CURRENT_USER,
"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer")
# list values owned by this registry key
i = 0
try:
while 1:
name, value, type = _winreg.EnumValue(explorer, i)
print repr(name),
i += 1
except:
print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment