automatically updating reg_binary

  • Thread starter Thread starter Peter Moriarty
  • Start date Start date
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
 
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
 
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
 
Back
Top