• Can't Change Registry with Python in Win7
    9 replies, posted
[code]import _winreg as wreg key = wreg.OpenKey(wreg.HKEY_CURRENT_USER, "Control Panel\Desktop") value = wreg.QueryValueEx(key,"WindowArrangementActive") print "Key value is : ", value wreg.SetValueEx(key, "WindowArrangementActive", 0, wreg.REG_SZ, v[0]) [/code] But of course, it returns [code]WindowsError: [Error 5] Access is denied[/code] Tried disabling UAC yet it still returns the same. Anybody have any solutions?
Run as Administrator.
[QUOTE=florian;18679421]Run as Administrator.[/QUOTE] I am administrator!
No no no, run as administrator. Right click and run as administrator.
Doesn't change anything when I run idle "As Administrator". Same errors. And it won't let me run the script "As Administrator" either.
Maybe some kind of antivirus/spyware is preventing you from editing registry
Search the key in the registry and check it's permissions.
Yea, that's the problem. How can I change the Control Panel registry permissions?
[QUOTE=zzzdude;18688673]Yea, that's the problem. How can I change the Control Panel registry permissions?[/QUOTE] eh
[QUOTE=zzzdude;18688673]Yea, that's the problem. How can I change the Control Panel registry permissions?[/QUOTE] Use regedit.
Sorry, you need to Log In to post a reply to this thread.