for reg in regs: if not reg.startswith("user-"): continue user = opusnt.regTmpPath + reg opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\GameDVR","/v","AppCaptureEnabled","/t","REG_DWORD","/d","0","/f"]) opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\GameDVR","/v","HistoricalCaptureEnabled","/t","REG_DWORD","/d","0","/f"])