Add registry key via batchfile
Posted
by
Usta
on Super User
See other posts from Super User
or by Usta
Published on 2012-06-18T04:29:53Z
Indexed on
2012/06/18
21:19 UTC
Read the original article
Hit count: 204
I'm trying to create a registry key with a batch file. I really need to be able to do this via a batch rather than a VBscript or .reg file.
So far by using this guide, I've come up with this. but whenever I try to run it, I don't see it in the registry. (No errors, running as Admin) What am I doing wrong?
REG ADD HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList /v "MyCustomWorkgroupUsername" /t REG_DWORD /d 0
© Super User or respective owner