Add mod: disable autoplay
This commit is contained in:
parent
08b98cb127
commit
6816a30019
5
mods/[all]/disable autoplay/modscript.py
Normal file
5
mods/[all]/disable autoplay/modscript.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
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_DWPRD","/d","0x000000ff","/f"])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user