PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Registry automatically updating reg_binary

Reply

automatically updating reg_binary

 
Thread Tools Rate Thread
Old 28-03-2004, 02:38 PM   #1
Peter Moriarty
Guest
 
Posts: n/a
Default automatically updating reg_binary


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


  Reply With Quote
Old 28-03-2004, 10:21 PM   #2
=?Utf-8?B?QXVzdGluIE0uIEhvcnN0?=
Guest
 
Posts: n/a
Default Re: automatically updating reg_binary

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/Res...nload/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
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off