Created
February 12, 2013 04:22
-
-
Save hackingbutlegal/4760222 to your computer and use it in GitHub Desktop.
Windows: Check out some registry values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment