Fix "disable file open warnings" not working, hopefully

This commit is contained in:
Fierelier 2022-04-03 08:49:33 +02:00
parent cdb9bf3f85
commit 0f37274307
2 changed files with 1 additions and 6 deletions

View File

@ -1,2 +0,0 @@
@echo off
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "1" /f

View File

@ -1,4 +1 @@
for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments","/v","SaveZoneInformation","/t","REG_DWORD","/d","1","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments","/v","SaveZoneInformation","/t","REG_DWORD","/d","1","/f"])