Jump to content

kali

Member
  • Posts

    127
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Bangladesh

Everything posted by kali

  1. Thanks. Just awesome, REG_EXPAND_SZ is working. I added the command below. REG ADD %Avro_active% /v "StubPath" /d "regedit /s %WINDIR%\Avro_prof.reg" /t REG_EXPAND_SZ /f 1>nul 2>nul Will it work in XP to later OS both 32bit and 64bit? Are you sure you added the command 'in color'? The reason I ask is that the line in cmd would automatically expand %windir% when reg adding it …it should read: REG ADD … %%WINDIR%%\Avro_prof.reg Yes, I directly added the command in my batch. At 1st added the reg key manually opening registry editor. I got it's woriking fine. Then I tried with batch (.bat not .cmd) and it's result also OK. But I saw exporting the registry settings of active setup, %WINDIR%\Avro_prof.reg is showing in hex value. So 1st time I tried the hex code in my batch. But it's not working. The batch file only adds StubPath without data (%WINDIR%\Avro_prof.reg). Then I added %WINDIR%\Avro_prof.reg directly and it worked. That means REG_SZ shows original value (%WINDIR%\Avro_prof.reg) but REG_EXPAND_SZ is transfored into hex in reg exported file and I could not add this hex code in reg with batch command. And yes, I tried with administrative privilage. UAC is not problem. I'm working in Win7. Sorry for my bad english. REG ADD … %%WINDIR%%\Avro_prof.reg Yes, you are correct, I think. Let me try again and I'll be back again with feedback.
  2. Thanks. Just awesome, REG_EXPAND_SZ is working. I added the command below. REG ADD %Avro_active% /v "StubPath" /d "regedit /s %WINDIR%\Avro_prof.reg" /t REG_EXPAND_SZ /f 1>nul 2>nul Will it work in XP to later OS both 32bit and 64bit?
  3. Yes, It works. Maybe the issue is with the expansion of the variable %WINDIR%.Try with an already expanded path, like: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Avro]@="Kali's OmicronLab Avro Keyboard""StubPath"="regedit.exe /s /C:\windows\Avro_prof.reg" I also tried regedit /s c:\Windows\Avro_prof.reg, regedit /s c:\\Windows\\Avro_prof.reg
  4. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Avro] @="Kali's OmicronLab Avro Keyboard" "StubPath"="notepad" The command above is working but the following. I want to add my reg file Avro_prof.reg saved in windows directory. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Avro] @="Kali's OmicronLab Avro Keyboard" "StubPath"="regedit /s %WINDIR%\Avro_prof.reg" Sorry.
  5. Yes, I tested notepad like following and worked fine. I also tested regedit, wordpad successfully. But when I try to add command it doesn't work. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Avro]@="Kali's Omicroblab Avro Keyboard""StubPath"="notepad"
  6. I want to add a reg file to Active Setup StubPath and I added like above. But it’s not working. I also tried regedit /s “%WINDIR%\Avro_prof.reg” and “%WINDIR%\Avro_prof.cmd” etc command. I put Avro_prof.reg and Avro_prof.cmd in Windows folder. But it shows like below in HKCU.
  7. I can understand all normal batch command but complex. For example your command bellow. I like batch command to use. Would you please give me some important links about how to learn pipeline and complex command you used I've given bellow? ) DO FOR /F "tokens=1,2 delims==" %%B IN (%%A) DO ( ECHO REG ADD "%My_Reg_hive%" /V %%B /D %%C /F )
  8. I’m really sorry to disturb you too much. I got the solution. I added my reg settings 1st and then I added admin user command. So my Avro.exe is running with administrative mode but reg is running with active user/logon user/running user. I added command to run reg with admin at last also. I attached my batch. I tested it but the settings is not being applied. I think your command will work when it'll be run normally. But my problem was running the the batch file with administrator from standard user. Avro_Silent_Working.txt
  9. kali

    Missing Bootrec

    Repair can be useful.
  10. I’ve understood Active Setup. Your link and description helped me very much to understand. I tried Active Setup in two ways (screenshot attached). None of them is working. May be my fault. It’s not working. I attached my final bat file for your kind concentration. I added a run once command here to work for all users. I think it’s not working. What’s your advice about this? Avro_Silent_Final.txt
  11. You can try this link. You can use only one image for all PC (any model will do). I made a command tool that will make your work easier.
  12. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon AutoAdminLogon=0
  13. I visited these links and read very attentively. But it’s very advanced topics to me. So I couldn’t apply the method discussed there. If you try my settings bellow you’ll be thanked and highly appreciated really. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\OmicronLab\Avro Keyboard]"ChangeInputLocale"="YES""PrefferedLocale"="BANGLADESH""AvroUpdateCheck"="NO""DontShowComplexLNotification"="NO""DontShowStartupWizard"="NO""StartWithWindows"="YES""ShowSplash"="NO""DefaultUIMode"="ICON""LastUIMode"="ICON""ModeSwitchKey"="F11""EnableJoNukta"="NO""OldStyleReph"="YES""VowelFormating"="YES""NumPadBangla"="YES""AutomaticallyFixChandra"="YES""FullOldStyleTyping"="YES""DefaultLayout"="Bijoy2003""OutputIsBijoy"="NO"
  14. I tried many ways. Same result. I think it's not possible. Better let the topic close. Thanks a lot for wise advice.
  15. Screenshot above is my result. I just tried to add more reg settings. That's all.
  16. I tried to add some registry line in your command and result is Error, screenshot with. Any fault in my codes? @ECHO OFF & SETLOCAL ENABLEEXTENSIONSecho.echo.echo.SET "_UPPS="FOR /F "USEBACKQ TOKENS=2 DELIMS==" %%A IN (`WMIC USERACCOUNT WHERE^ "DISABLED='FALSE' AND LOCALACCOUNT='TRUE' AND STATUS='OK'" GET SID /VALUE` ) DO (FOR /F "USEBACKQ TOKENS=1* DELIMS==" %%B IN (` WMIC PATH WIN32_USERPROFILE WHERE^ "SID='%%A' AND SPECIAL='FALSE'" GET LOCALPATH /VALUE 2^>NUL`) DO ( IF %%~dC' NEQ ' (CALL SET _UPPS=%%_UPPS%% "%%~C")))IF NOT DEFINED _UPPS GOTO :EOFSET _CRK=Software\OmicronLab\Avro KeyboardFOR %%A IN (%_UPPS%) DO (REG LOAD "HKU\_" "%%~A\NTUSER.DAT" REG ADD "HKU\_\%_CRK%" /V ShowSplash /D NO /F>NUL REG ADD "HKU\_\%_CRK%" /V DefaultUIMode /D ICON /F>NUL REG ADD "HKU\_\%_CRK%" /V ModeSwitchKey /D F11 /F>NUL REG ADD "HKU\_\%_CRK%" /V DefaultLayout /D Bijoy2003 /F>NUL REG UNLOAD "HKU\_" PING -n 4 127.0.0.1 1>NUL)echo.echo.echo.echo. Now press any key to exit &pause >nulexit /b
  17. Here is where learning a little about batch files and understanding the snippet Yzöwl posted may become useful. Provided that when you run your batch you have access to WMI interface, if not, you will need to run the batch related to the Registry post install or find another way to "pair" users with their SID's, like (example) experiment with PsGetSid: http://technet.microsoft.com/en-us/sysinternals/bb897417.aspx Basically you need to replace in your batch (in the line to add to the Registry) the HKCU with HKU\<SID> and you need to calculate the <SID> value dinamycally when the batch is run. Alternatively , you could try assigning at install time to the "standard" User "KAMRUL" Administration privileges and later demote it to "Standard user". If you are asking how to find out which user is currently logged in?, try issuing the whoamicommand in a Command window prompt . jaclaz I can do two thinks, but I've no idea about how to do it? 1st - Find the HKU or active logon user SID and apply the registry settings to this SID. (Yzöwl's Idea may work) 2nd- Apply the registry settings to all user (active, non active). Can you advise me how to do it?
  18. Yes, I'got. But SID may not be same in all kinds of windows. So how to apply same reg in all HKU/active Current user/active log on user? Because SID may be different but my reg file is only one.
  19. Exactly you’ve caught the real thing. I’ve two user account, Administrator and Standard. Administrator is password protected and Standard is auto logon user without passport. I always use standard user. It’s my active/logon user/KHCU. When I try to use administrative power (like installing/uninstalling etc) windows prompt for Administrator with password. It’s really my tricks to protect my PC from unauthorized or child attack. My all the drives are read only (Copy, paste, delete, move protected). Standard and Administrator are the problem for my batch command. When I run the batch file from standard user/ active/logon user/KHCU it’s prompt for Administrator to install Avro. After confirmation of Administrator the batch file run with administrator user and try to add the registry settings in HKCU. In this moment HKCU is Administrator. But I need logon user. I want the batch file as universal command file for all kinds of PC (from Win XP to later, Administrator and Standard user). So how to run the batch file with the logon user in that moment? It's the command to use with Administrator and Standard/active/logon user. Thanks. My user information as your command. Yzöwl:HKU\S-1-5-21-3912419492-1565357640-1409004406-1003 HKU\S-1-5-21-3912419492-1565357640-1409004406-1001
  20. Avro is a software to write my native language Bengali. It stores profile settings under the following registry address and it’s only one address for profile settings. I made it’s silent install with registry settings for all windows version from XP to Windows 10. No problem with silent install but reg settings. It’s working everywhere. But for standard user (in Seven or later) registry setting is not working. That means Registry setting is not being added. If I can add the following registry settings with Administrator user I’m successful. [HKEY_CURRENT_USER\Software\OmicronLab\Avro Keyboard]
  21. I tried it many times before and tried again as your advised.
  22. I’m trying to add the following reg key with bat command. If I run the bat file with standard user the reg setting is added but when try with administrative user it is not added. The fact is administrative user doesn’t write registry settings in HKEY_CURRENT_USER Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\OmicronLab\Avro Keyboard]"ChangeInputLocale"="YES"My batch file is as follows. echo Windows Registry Editor Version 5.00 >> "%WINDIR%\Temp\Avro.txt"echo [HKEY_CURRENT_USER\Software\OmicronLab\Avro Keyboard] >> "%WINDIR%\Temp\Avro.txt"echo "ChangeInputLocale"="YES" >> "%WINDIR%\Temp\Avro.txt"ren "%WINDIR%\Temp\Avro.txt" Avro_prof.regregedit /s "%WINDIR%\Temp\Avro_prof.reg"I tried also regedit /s "%~dp0myreg.reg" and regedit /s myreg.reg to run my registry file.
  23. Excellent. It's working fine. MS link used id instead of name code. But both are working to me.
×
×
  • Create New...