Apply disable autoplay at user setup instead

This commit is contained in:
Fierelier 2022-03-02 06:52:00 +01:00
parent 57a85bdc89
commit 7a6f2769b5
2 changed files with 2 additions and 5 deletions

View File

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

View File

@ -1,5 +0,0 @@
for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\policies\\Explorer","/v","NoDriveTypeAutoRun","/t","REG_DWORD","/d","0x000000ff","/f"])