script to modify ntuser.bat of restricted user

From: MichaelMartis (mtmartis_at_yahoo.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 07:01:13 -0800

Here is my situation. I created a batch as follows:

attrib c:\docume~1\%username%\ntuser.dat -h
REG LOAD HKU\ntuser C:\docume~1\%username%\ntuser.dat
REG DELETE "HKU\ntuser\software\policies\microsoft\office" /f
REG DELETE "HKU\ntuser\software\policies\microsoft\shared tools" /f
REG UNLOAD HKU\ntuser
attrib c:\docume~1\%username%\ntuser.dat +h

I need it to load the ntuser.dat to HKU for the user logging int hen delete certain keys from the ntuser.dat hive

I know that if the user already is logged in, I can not load their ntuser.dat into the HKU branch.
So I need to have this script run for the user logging in BUT BEFORE the ntuser.dat loads.
The user machines are Windows XP authenticating Windows 2000 DC and Novell as well.

Is this possible, Please advise



Relevant Pages

  • Re: script to modify ntuser.bat of restricted user
    ... those look like group policy settings. ... > I need it to load the ntuser.dat to HKU for the user logging int hen ... > So I need to have this script run for the user logging in BUT BEFORE the ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Registry Keys to set Explorer settings
    ... so all the reg tweaks which are for the HKEY_CURRENT_USER i should put in ... HKEY_CURRENT_USER keys. ... This will load the default user's ntuser.dat, ... >>> .default is the settings for when noone is logged in. ...
    (microsoft.public.windowsxp.customize)
  • Re: Registry Keys to set Explorer settings
    ... so all the reg tweaks which are for the HKEY_CURRENT_USER i should put in ... HKEY_CURRENT_USER keys. ... This will load the default user's ntuser.dat, import the HKEY_USERS tweaks ...
    (microsoft.public.windowsxp.customize)
  • Re: Edit Default User NTUSER.DAT
    ... Olof, this is exactly what I was looking for. ... I can load the ntuser.dat file into the hive ok ... I then reg import my .reg file ... >But if you want to do it from a script or command line, ...
    (microsoft.public.win2000.security)
  • Re: Unable to install Cumulative Security Update for Internet Expl
    ... Double Click the .REG file you created and answer Yes to load. ... I had the problem on 3 servers that got updated with the bad patch automatically. ...
    (microsoft.public.windowsupdate)