Re: "ntuser.dat in use" after complete shutdown?



From: "daat99" <daat99@xxxxxxxxxxxxxxxxxxxxxxxxx>

| [b]A bit of a background:[/b]
| At our system all windows xp machines store the users profiles in partition D.
|
| In order to maintain a "clean" environment we used to have a batch file that
| formated drive D and than copied back a backup of the default/all/admin user
| profiles into drive d again.
|
| We tried to shrink this long process by creating a batch file that will
| delete all the directories inside the "Documents and Settings" directory in
| drive D with the exception of the default/all/admin directories.
|
| We used the following command to delete all the folders that match our
| criteria (inside a for loop and if conditions where %%i is the directory we
| want to delete):
| rd "%%i" /q /s
|
| [b]The problem:[/b]
| After a while we started to notice that the batch file is having problems
| deleting some of the directories and that it complains about "NTUSER.DAT is
| being used".
|
| We followed the following procedure when running the batch file:
| 1. Complete shut down (turn off)
| 2. Wait until the fans stop spinning.
| 3. Turning on the computer.
| 4. Logging in with a predefined user that have the appropriate access rights.
| 5. Running the batch file.
|
| [b]The question:[/b]
| Is there any way to make the batch file delete ALL the folders including the
| so called used "ntuser.dat" files without having to force a format on the
| drive again?
|
| P.S.
| We were told that the problem is that some programs leave the registry open
| for the users that used it but isn't a complete shut down of the system
| supposed to solve that?
| We're trying to accomplish this without installing further packages/programs.
|
| Thanks in advance
|
| daat99

NTUser.dat is the User Registry.

When you Logon the User Registry is loaded. Presumably, the User Registry of the account
being used is the one causing the error.

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm


.



Relevant Pages

  • "ntuser.dat in use" after complete shutdown?
    ... At our system all windows xp machines store the users profiles in partition D. ... formated drive D and than copied back a backup of the default/all/admin user ... We tried to shrink this long process by creating a batch file that will ... Is there any way to make the batch file delete ALL the folders including the ...
    (microsoft.public.windowsxp.general)
  • Re: Duplicating Files
    ... I fiddled with my folders and managed to get your batch file to run. ... I tried your batch file Pegasus (MVP), ...
    (microsoft.public.windowsxp.general)
  • Re: Unable to run .bat files using SMS
    ... REM Create folders and shares ... mkdir BEBackup\Catalogs ... That means that your batch file is running, ... Microsoft MVP - SMS ...
    (microsoft.public.sms.admin)
  • Re: NTFS Compression
    ... > would be required to uncompress all the folders. ... >> disable compression on NTFS volumes, ... Create a batch file using the compact.exe command to uncompress all ... >> and folders on the data volume on your server e.g.: ...
    (microsoft.public.windows.server.setup)
  • Re: Batch to delete TIFs, History, and Cookies
    ... you're saying that your batch file *does* delete the students' TIFs, ... This is why I assumed your admin machine was "reporting" the folders ... TIF folder or those in the Cookies folder. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)

Loading