|
|
@ -40,8 +40,12 @@ def install(): |
|
|
|
run(r'net user rv /add', accept_returncodes=[0,2]) |
|
|
|
run(r'net user rv /add', accept_returncodes=[0,2]) |
|
|
|
run(r'net localgroup Administrateurs rv /add', accept_returncodes=[0,2]) |
|
|
|
run(r'net localgroup Administrateurs rv /add', accept_returncodes=[0,2]) |
|
|
|
|
|
|
|
|
|
|
|
print('Disabling P2P updates delivery') |
|
|
|
if windows_version() > Version('10'): |
|
|
|
registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization', 'DODownloadMode', 0, REG_DWORD) |
|
|
|
print('Disabling P2P updates delivery') |
|
|
|
|
|
|
|
registry_setstring(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization', 'DODownloadMode', 0, REG_DWORD) |
|
|
|
|
|
|
|
print('Disabling Cortana') |
|
|
|
|
|
|
|
registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\Windows Search', r'AllowCortana', 0, REG_DWORD) |
|
|
|
|
|
|
|
remove_metroapp('Microsoft.Windows.Cortana') |
|
|
|
|
|
|
|
|
|
|
|
def uninstall(): |
|
|
|
def uninstall(): |
|
|
|
print('Re enabling services') |
|
|
|
print('Re enabling services') |
|
|
|