2
0
I'm trying to edit Windows Registry through Command Line for some reasons, and I'm having a problem with REG Add Command. First of all:
REG ADD "HKEY_CLASSES_ROOT\*\shell\runas\" /t REG_SZ /v Default /d Take Ownership /f
I want to use this command to change value of Default in runas key to Take Ownership. However when I use this command this happens: It just adds a key named with a command.
Another Problem I'm having is with this command:
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon" /t REG_DWORD /v DisableCAD /d 1 /f
This one should in theory edit DisableCAD value to 1. However after reboot it doesn't occur, and I have to do this using regedit. Anyone knows how do I repair it?
Thanks In Advance!
1try removing the last
\
fromREG ADD HKEY_CLASSES_ROOT\*\shell\runas\
– mael' – 2019-06-19T17:51:21.477@mael' Then it says "Incorrect syntax" – BlackOtton – 2019-06-19T18:10:22.313
1
Take Ownership
has to be double quoted to be seen as a whole, ATM the argument Ownership is unknown. – LotPings – 2019-06-19T18:20:45.670Are you aware of the difference
/v Default
(creates a new value namedDefault
) and/ve
(adds an empty value name(Default)
for the key); in your locale, adds an empty value name(Domyślna)
for the key? – JosefZ – 2019-06-19T21:08:35.373@JosefZ That was it! I wasn't aware of the difference, now it seems so logical to be honest! – BlackOtton – 2019-06-20T21:19:38.913