for reg in regs: if not reg.startswith("user-"): continue user = opusnt.regTmpPath + reg opusnt.runReg(["add",user + "\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer","/v","DisableSearchBoxSuggestions","/t","REG_DWORD","/d","0x00000001","/f"]) opusnt.runReg(["add",user + "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search","/v","BingSearchEnabled","/t","REG_DWORD","/d","0x00000000","/f"]) opusnt.runReg(["add",user + "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search","/v","CortanaConsent","/t","REG_DWORD","/d","0x00000000","/f"])