Reg add cheat sheet

REG_BINARY
[HKEY_CURRENT_USER\Control Panel\Desktop]
"UserPreferencesMask"=hex:10,00,01,80
reg add "HKCU\Control Panel\Desktop" /v UserPreferencesMask /t reg_binary /d 10000180 /f
REG_DWORD
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"DisableFirstRunCustomize"=dword:00000001
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v DisableFirstRunCustomize /t REG_DWORD /d 1 /f
REG_SZ
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"FormSuggest PW Ask"="no"
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Use FormSuggest" /t reg_sz /d "no" /f
Run somethink in %systemroot%
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"CCleaner"="\"C:\\Windows\\CCleaner.exe\" /auto"
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v CCleaner /t reg_sz /d "%systemroot%\CCleaner.exe /auto" /f
If you run some file in %programfiles% or any other folder that contains spaces, you need to add extra \"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"CCleaner"="\"C:\\Program Files\\CCleaner.exe\" /auto"
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v CCleaner /t reg_sz /d "\"%programfiles%\CCleaner.exe\" /auto" /f

No comments: