NT Registry At Logon

Tom McKim mckimt at yahoo.com
Thu Oct 17 11:21:09 EDT 2002


I worked out a solution for this in the past.
I went in the registry an told it to run a bat file on Logon.  This bat file ran a registry change.  
It should work... Here are the 3 steps
Step 1 Create the Registry Fix.  You can Export the Registry Items you want.  If you add a minus sign in front it will delete the item from the registry
File 1 "Example.reg" save it in the Winnt Directory (or what ever directory you want)
_______________________________________________________
REGEDIT4
[-HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing]
_______________________________________________________

Step 2. Create a Bat file that runs it.  
File 2 "Example.bat" Also save in the Winnt Directory.
_______________________________________________________
regedit /s c:\winnt\example.reg
@echo off
cls
_______________________________________________________
Step 3. Add a Item to the Registry that executes the "Example.Bat" on logon.
If you are going to do this on Multible PC's you can also create a bat file that installs it.  Just follw the example in step 1.
_______________________________________________________
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Fix"="c:\\Winnt\\Example.bat"
_______________________________________________________
After some trial and error it should work...
I would like to know if anyone else has a better solution.
 
 
 Justin Bennett <Justin.Bennett at dynabrade.com> wrote:I know this is not technically the place for this question but here goes.
I have NT/2K clients on a Solaris PCNetlink NT Domain (emulates NT 4 SP4).
I need to be able to add registry entries to a PC when it boots or logs
onto the domain. Without prompting the user, and the users usually don't
have rights to add registries. There are a lot of people on here that know
alot more about NT than I. I have a logon script, and user/machine
policies. I don't see anything in the policies to let me do this. I have
found reference to regedit /s xxx.reg this works from an admin account but
not a normal user account.

Any help is apreciated

thanks
Justin



-- 
-------------------------------------------
Justin Bennett
Red Hat (Linux) Certified Engineer
Network Administrator
Dynabrade Inc.
8989 Sheridan Dr
Clarence, NY 14031
716-631-0100 ext 215



Tom McKim
mckimt at yahoo.com
mckimt at epicforchildren.org


---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nflug.org/pipermail/nflug/attachments/20021017/016cd214/attachment-0001.html


More information about the nflug mailing list