diff --git a/examples/reg.py b/examples/reg.py index d1c3edee7d..54d26ff3a0 100755 --- a/examples/reg.py +++ b/examples/reg.py @@ -425,8 +425,10 @@ def __strip_root_key(self, dce, keyName): raise Exception('Error parsing keyName %s' % keyName) if rootKey.upper() == 'HKLM': ans = rrp.hOpenLocalMachine(dce) - elif rootKey.upper() == 'HKU': + elif rootKey.upper() == 'HKCU': ans = rrp.hOpenCurrentUser(dce) + elif rootKey.upper() == 'HKU': + ans = rrp.hOpenUsers(dce) elif rootKey.upper() == 'HKCR': ans = rrp.hOpenClassesRoot(dce) else: