Modify the Current User reg key with a login script?

S

Scott

Does anyone know if/how to create a login script that will
add a key to the current user registry key?
 
S

Scott Losawyer

Create your reg file on the fly, then import into the
registry in the logon script.


@echo REGEDIT4 >c:\temp\my_reg_file.reg
@echo.>>c:\temp\my_reg_file.reg
@echo
[HKEY_CURRENT_USER\my_new_key>>c:\temp\my_reg_file.reg
regedit /s c:\temp\my_reg_file.reg

Scott
 
S

Scott Losawyer

Create your reg file on the fly, then import into the
registry in the logon script.


@echo REGEDIT4 >c:\temp\my_reg_file.reg
@echo.>>c:\temp\my_reg_file.reg
@echo
[HKEY_CURRENT_USER\my_new_key>>c:\temp\my_reg_file.reg
regedit /s c:\temp\my_reg_file.reg

Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top