diff --git a/win32/Lib/win32serviceutil.py b/win32/Lib/win32serviceutil.py index fd4be7a5e9..77a6626735 100644 --- a/win32/Lib/win32serviceutil.py +++ b/win32/Lib/win32serviceutil.py @@ -121,7 +121,7 @@ def LocateSpecificServiceExe(serviceName): win32con.HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Services\\%s" % (serviceName), 0, - win32con.KEY_ALL_ACCESS, + win32con.KEY_QUERY_VALUE, ) try: return win32api.RegQueryValueEx(hkey, "ImagePath")[0]