python - regedit still shows deleted keys even after rebooting -
i using winreg.deletekey delete keys registry. have no problems using api; i'm getting weird problem where, if delete key hkey_local_machine\software, code runs , deletes (and if run again says cannot find key since deleted), key still shown in regedit after rebooting!
i can edit values of key within regedit! if try delete key again, windowserror raised says can't find file specified though worked first time!
does know what's happening? baffling, , can't seem find info on this.
edit: apparently 32-bit application opens 32-bit key, not 64-bit key. when try open key so:
akey = winreg.openkeyex(akey, subkey_str, 0, winreg.key_wow64_64key)
i "access denied" error message. have tried running script runas, opening terminal admin. user account has administrator privileges, , event went far check privilege on key itself. administrator , users have full access key.
any ideas why can't open it?
Comments
Post a Comment