for key in opusnt.regQueryKeys(opusnt.regTmpPath + "system"): if key.lower().startswith(opusnt.regTmpPath.lower() + "system\\controlset"): opusnt.runReg(["add",key+ "\\Control\\GraphicsDrivers","/v","TdrDelay","/t","REG_DWORD","/d","16","/f"])