View Full Version : Deleting old profiles when user logs off? (WNT)
dclaycombe
08-20-2003, 12:13 PM
Here is the situation. I have several older PCs that are common machines (running Win NT at the moment). I have about 200 users logging into these machines over the course of a month which, as you can imagine, fills up the drive very quickly (small drive).
I am looking for some kind of tweak that would delete these profiles on a regular basis or even when the user immediatly logs off.
Does anyone have any ideas to try??
motoflop
08-20-2003, 12:32 PM
First you could write script for deleting old profiles. You could use vbs script or cmd file. List directories under c:\winnt\profiles. Remember to skip important ones like administrators profile. Script could try to delete ntuser.dat from users profile directory. If that succeeds, the profile is not in use and can be deleted. Then use "rd /s /q c:\winnt\profiles\userxxx" command to delete whole directory tree.
When you have working script, you could create new service with SRVANY utility. Define the script so that it has forever loop, but it sleeps some time before it runs itself again.
That was just an idea. I haven't tested if it works.
Here is the easy way....
Go into User Manager on the local machine and add the "Domain/Domain Users" group to the local machine's "Guest" Group. Their profiles will then be deleted when they logoff.
dclaycombe
08-21-2003, 08:32 AM
Great that worked! I just have to hope the app will work without admin or user rights on the PC. Only time will tell.
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.