Re: script to modify ntuser.bat of restricted user

Posted: 04-01-2004, 06:39 AM
Not possible with login script, which runs after policy processing
complete (i.e. hive loaded), and also because user context does not
have the rights to modify the policy keys that intend to control it.
As Drew points out, perhaps we should address this by looking at
what it is you are trying to accomplish with this purging of these
user policy keys, and find a way that uses the provided mechanisms.

--
Roger Abell
Microsoft MVP (Windows Server System: Security)
MCSE (W2k3,W2k,Nt4) MCDBA
"MichaelMartis" <mtmartis@yahoo.com> wrote in message
news:0B2D6B55-8329-4E71-BF10-4E5865CD247F@microsoft.com...
> 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
>

Reply With Quote

Responses to "Re: script to modify ntuser.bat of restricted user"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
ntuser.dat file deleted. How can I repair the user profile? Cristi Windows Vista Administration 0 06-21-2008 03:48 PM
Modify NTFS Permission with script like Xcalcs.vbs ...... primax Windows Vista Networking & Sharing 0 06-25-2007 12:23 PM
Q: How to modify registry keys using a startup script Cueball Customize Windows XP 9 02-15-2004 11:48 PM
Badly fragmented files, ntuser.dat and ntuser.dat.LOG in WinXP Pro Marc Windows XP Performance & Maintenance 0 02-03-2004 07:05 PM
Deleting NTUSER.DATfor a deleted user account CarlosWA Windows XP Security & Administration 2 09-19-2003 12:36 PM