0
I'd like to create a new .reg
file and add it to the registry, as suggested in this article.
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"
It's pretty simple. But I want to script it. I thought I could just use REG ADD
, but I'm not sure how to incorporate the @="@SYS:DoesNotExist"
part at the end.
I appreciate it, but yuck. Is that necessary? Can't I just
REG ADD
it, or something like that? – voices – 2018-11-29T14:29:31.383@tjt263 This answer provides a solution based on the way your question is worded. That is, it creates a
.reg
file and imports that file. – Worthwelle – 2018-11-29T16:31:06.517what else ya got – voices – 2018-11-29T17:19:03.100
I think LotPings' answer will give you the all-in-one script you seek :) – Kinnectus – 2018-11-29T17:37:21.367