automatically updating reg_binary

P

Peter Moriarty

I am looking for a way to automatically add a value to
reg_binary key in
HKEY_CURRENT_USER\Printers\DevModePerUser

This value adds a user code for a print driver. I can
manually edit the key to add the value and the resultant
code that is send to the printer, however I would like to
add it automatically at network login.

Any idea?
Much appreciated.
Peter
 
G

Guest

Use a logon script (.bat or .cmd)

The batch script requires Microsoft's Reg.exe program (included with XP)
It's available on the Windows 2000 Resource Kit, or a
http://www.dynawell.com/support/ResKit/win2k.as
http://www.dynawell.com/support/ResKit/download/w2kreg.as
http://202.138.126.39/cas/download.ht
http://www.petri.co.il/download_free_reskit_tools.ht

The following example adds a value: "valuename" data: "1
Change the "value" and "data" to meet your requirements

::::: START OF BATCH FILE (2 Lines) ::::

@ECHO OF
REG ADD "HKEY_CURRENT_USER\Printers\DevModePerUser" /V valuename /T REG_BINARY /D 1 /

:::::: END OF BATCH FILE (2 Lines) :::::

Austin M. Horst
 
G

Guest

Use a logon script (.bat or .cmd)

The batch script requires Microsoft's Reg.exe program (included with XP)
It's available on the Windows 2000 Resource Kit, or a
http://www.dynawell.com/support/ResKit/win2k.as
http://www.dynawell.com/support/ResKit/download/w2kreg.as
http://202.138.126.39/cas/download.ht
http://www.petri.co.il/download_free_reskit_tools.ht

The following example adds a value: "valuename" data: "1
Change the "value" and "data" to meet your requirements

::::: START OF BATCH FILE (2 Lines) ::::

@ECHO OF
REG ADD "HKEY_CURRENT_USER\Printers\DevModePerUser" /V valuename /T REG_BINARY /D 1 /

:::::: END OF BATCH FILE (2 Lines) :::::

Austin M. Horst
 

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