• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 689
  • Last Modified:

Delete old unused profiles on XP Pro machins remotely

I'm looking for a way to clean off old profiles off of XP Pro computers remotely as quickly as passable, I've been going into the documents and settings folder and deleting them through explorer, but I'm getting a lot of "Cannot delet NTUSER.DAT:" messages and also messages giving the option to skip deleting a specific file. What I want is to delete a bunch of profiles at a time with the least amount of interaction and as quick as possible, does anyone know a way to do this? I'm doing this through remote (dame ware) or preferably by using the \\computer name\c$ access.

Domain environment, XP Pro system, Server 2003 servers.

Thank you,
0
dsterling
Asked:
dsterling
3 Solutions
 
jvuzCommented:
With unlocker (http://www.filehippo.com/download_unlocker/) you can delete the files that are in use (in your case the .dat files)
0
 
dsterlingAuthor Commented:
ivuz: I've tried unlocker and it requires a great deal of interaction and still will not delete some files.
0
 
NikCommented:
If you're getting 'Cannot delete NTUSER.DAT' message, it probably means that this file is in use.
This file isn't 'released' upon user logs off from computer. Restart is needed instead.

You can download the User Profile deletion utility and do it via batch script.
http://www.microsoft.com/downloads/details.aspx?familyid=901a9b95-6063-4462-8150-360394e98e1e&displaylang=en
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
Anyone3003Commented:
yeah defnitly use delprof exe (User Profile deletion utility )

then use the parameters

usage:  DELPROF [/Q] [/I] [/P] [/R] [/C:\\<computername>] [/D:<days>]


        /Q      Quiet, no confirmation.

        /I      Ignore errors and continue deleting.

        /P      Prompts for confirmation before deleting each profile.

        /R      Delete roaming profile cache only

        /C      Remote computer name.

        /D      Number of days of inactivity.
0
 
nappy_dCommented:
To complement delprof.exe add this to a batch script and you can run it remotely(manually) or remotely schedule with schtasks.

REM created by sirbounty, www.experts-exchange.com
@echo off
for /f "tokens=*" %%a in ('dir c:\docume~1 /b /ad') do call :process "%%a"
goto :eof

:process
if [%1]==["Administrator"] goto :eof
if [%1]==["All Users"] goto :eof
if [%1]==["Default User"] goto :eof
if [%1]==["LocalService"] goto :eof
if [%1]==["NetworkService"] goto :eof
cd\docume~1
::remove the echo from the next line to activate
::replace with delprof command to delete the other profiles based upon your data criteria
echo rmdir %1 /s /q

Open in new window

0
 
essam_142Commented:
Go to control pannel  System  Advanced tab  on user profiles click Settings  select profiles and click delete
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now