The main drawback is the I had to use %username% for both initials and User Name. I used the User Config -> Preferences -> Registry to accomplish the task. :: set current directory to "Documents and Settings"įor /f "tokens=*" %%i in ('dir /b /ad') do (if exist ".\%%i\NTUSER.DAT" call :AddRegValue "%%i" ".\%%i\NTUSER.DAT") ![]() :: update all other users on the computer, using a temporary hive %regcmd% add "%key%" /v %valuename1% /d " " /t REG_SZ /f >nul ![]() You can change the REG_SZ by REG_DWORD or others values, if you off If you know the registry key HKCU you want to change, you can use following batch file which will change this key in all users account and also the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |