Jump to content

Removing Multiople Local User Accounts..


Recommended Posts

I manage close to 400 clients ( XP ) sat on a 2003 Server - I'd really like a reasonably simple way to remove all the local profiles on the client machines across the network.

Okay, so one could write a batch file using Delprof.exe - but for 400 odd machines this is not practical.

Does anyone know some nifty VB Script that will do the job for me? ( I'm a novice at scripting , so please be nice.. )

Any advice would be really appreciated

Link to comment
Share on other sites


Delprof can also work remote (see below)

so you can run the command for a list of computers (use FOR /F)

this will look something like :

FOR /F %i in (myfile.txt) do @delprof /c:\\%%i /d:7 /q

for deleting all profiles older than 1 week from all clients in the myFile.txt - file (no confirmations)

gr /\/\o\/\/

-- delprof syntax

/q

runs DelProf in quiet mode, with no confirmation for each profile to be deleted.

/i

indicates that DelProf should ignore errors and continue deleting.

/p

prompts for confirmation before deleting each profile.

/c:\\computername

specifies a remote computer name on which to run DelProf.

/d:days

specifies the number of days of inactivity (days is an integer). profiles with longer inactivity will be deleted.

/?

displays command-line syntax

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...