A. Microsoft provides the user profile deletion tool, which you can download at http://www.microsoft.com/downloads/details.aspx?familyid=901A9B95-6063-4462-8150-360394E98E1E&displaylang=en . The tool lets you use a command line to delete user profiles. It has a number of switches that, for example, can remove all profiles that are inactive for a configurable amount of time and can operate on both local and remote computers.

By default, the tool simply runs through all profiles, and when used with the /p switch, will prompt whether the profile should be deleted or not. Used with the /d switch to specify a number of days of inactivity, the utility becomes more useful, as this sample execution shows:

C:\Program Files\Windows Resource Kits\Tools>delprof /p /d:7
Delete C:\Documents and Settings\john? (Yes/No/All) n
Delete C:\Documents and Settings\Administrator? (Yes/No/All) n