Add r to registry path
This commit is contained in:
@@ -5,15 +5,15 @@ uninstallkey = []
|
|||||||
|
|
||||||
def install():
|
def install():
|
||||||
print('installing %s' % control.asrequirement())
|
print('installing %s' % control.asrequirement())
|
||||||
registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation','Value','Deny')
|
registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation','Value','Deny')
|
||||||
|
|
||||||
def uninstall():
|
def uninstall():
|
||||||
print('uninstalling %s' % control.asrequirement())
|
print('uninstalling %s' % control.asrequirement())
|
||||||
registry_set(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation','Value','Allow')
|
registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation','Value','Allow')
|
||||||
|
|
||||||
def audit():
|
def audit():
|
||||||
print('Auditing %s' % control.asrequirement())
|
print('Auditing %s' % control.asrequirement())
|
||||||
if registry_readstring(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation','Value').lower() == 'deny':
|
if registry_readstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\userAccountInformation','Value').lower() == 'deny':
|
||||||
return 'OK'
|
return 'OK'
|
||||||
else:
|
else:
|
||||||
return 'Error'
|
return 'Error'
|
||||||
|
|||||||
Reference in New Issue
Block a user