I deleted a user in Local Users and Groups but forgot to delete the users'
profile via the System control panel applet. Deleting the user did not
remove the users NTUSER.dat file and when I try to delete it (while logged in
as a different user with Admin rights) it always complains the file is in use.
What's the best way to delete these files? (NTUSER.dat.log as well)?
If that doesn't work, boot into Safe Mode and use the built-in Administrator
account.
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart
Display\Security
Win 95/98/Me/XP Tweaks and Fixes http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"Peter Ritchie [C# MVP]" <PRSoCo@newsgroups.nospam> wrote in message
news:B1C30B57-496C-469F-B403-B832F40178E4@microsoft.com...
>I deleted a user in Local Users and Groups but forgot to delete the users'
> profile via the System control panel applet. Deleting the user did not
> remove the users NTUSER.dat file and when I try to delete it (while logged
> in
> as a different user with Admin rights) it always complains the file is in
> use.
>
> What's the best way to delete these files? (NTUSER.dat.log as well)?
>
> Thanks -- Peter
> --
> Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
> http://www.peterRitchie.com/blog/
> Microsoft MVP, Visual Developer - Visual C#
"Peter Ritchie [C# MVP]" <PRSoCo@newsgroups.nospam> wrote in message
news:B1C30B57-496C-469F-B403-B832F40178E4@microsoft.com...
>I deleted a user in Local Users and Groups but forgot to delete the users'
> profile via the System control panel applet. Deleting the user did not
> remove the users NTUSER.dat file and when I try to delete it (while logged
> in
> as a different user with Admin rights) it always complains the file is in
> use.
>
> What's the best way to delete these files? (NTUSER.dat.log as well)?
Rename the file.
It then will not be in use the next time you boot
For the first paprameter in the API pass the file path to the dat file & then
use NULL (to delete) for the second parameter
Run with F5 in Visual Studio & reboot when ready
Simple
--
Newbie Coder
(It's just a name)
"Peter Ritchie [C# MVP]" <PRSoCo@newsgroups.nospam> wrote in message
news:B1C30B57-496C-469F-B403-B832F40178E4@microsoft.com...
> I deleted a user in Local Users and Groups but forgot to delete the users'
> profile via the System control panel applet. Deleting the user did not
> remove the users NTUSER.dat file and when I try to delete it (while logged in
> as a different user with Admin rights) it always complains the file is in use.
>
> What's the best way to delete these files? (NTUSER.dat.log as well)?
>
> Thanks -- Peter
> --
> Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
> http://www.peterRitchie.com/blog/
> Microsoft MVP, Visual Developer - Visual C#