Tool

bkeadle's picture
tool
Reads:

3314

Score:
0
0
 
Comments:

0

DelLocalWinUser

Author Info

17 November 2005 - 6:36pm
Submitted by: bkeadle

(View Disclaimer)

license: 
Free

By Bryan Keadle

Similar to this Windows user accounts cleanup tool:
http://www.novell.com/coolsolutions/tools/14441.html

This utility, DelLocalWinUser.exe (Delete Local Windows User) is a manual utility that enables you to clean up local Windows user accounts (profile directory and SAM) from the command line.

A common and unique feature of this utility is the ability to delete all local account that haven't been used for a number of days.

DelLocalWinUser * 30

This is handy for keeping shared-use computers from getting clogged with old, unused accounts.

SYNTAX: DELLOCALWINUSER (username / *) (Days_old) (QUIET)

    Username - Name of local account to delete

    * - if wildcard specified, delete all local accounts
        according to number of days old specified as a 
        second parameter, excluding accounts listed in
        an exlude list file, DELLOCALWINUSER.EXCLUDE,
        and the following hard-coded accounts:

            Administrator
            *STDLoad
            DEFAULT USER
            standalone
            *NT AUTHORITY
            __VMWARE_USER__
            ASPNET

10/17/05 Update: AUTHOR NOTE UPDATE
This update addresses the issue with bombing out on names with apostrophes.
One could run this as a service using the SRVANY tool from Microsoft.
This would need to be run as an Administrator-level account. Could use the RUNAS.EXE utility to launch DelLocalWinUser as an Admin-level account.

BilagaStorlek
del_local_win_user.zip567 kB

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell