How to modify other user account registry without logging into them using python(code in description

preview_player
Показать описание
in this video, you will see how to modify other user account registry without logging into them and restricting their system access using python. code show below.

import os
import winreg
from subprocess import Popen, PIPE
users = Popen("net users",shell=True,stdout=PIPE,stderr=PIPE).communicate()[0]
user_accounts = str(users).split()
for i in user_accounts:
print(i)

try:
keycreation = winreg.CreateKeyEx(winreg.HKEY_USERS, "%s\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer"%(i),0,winreg.KEY_ALL_ACCESS)
winreg.SetValueEx(keycreation, "NoControlPanel", 0, winreg.REG_DWORD, 1)
winreg.CloseKey(keycreation)
except Exception as e:
print(e)
else:
Рекомендации по теме