Solved

script to delete profiles older than 30days

Posted on 2004-08-06
1
323 Views
Last Modified: 2010-04-13
Does anybody have a script (for XP,2000,NT) I can run once a month that will delete profiles not used for 30 or more days?
0
Comment
Question by:jerdognet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 84

Accepted Solution

by:
oBdA earned 250 total points
ID: 11735998
Microsoft offers a utility for exactly that purpose; delprof.exe, which is part of the W2k or W2k3 Resource Kit. If you don't have the W2k Resource Kit, you can download and install the W2k3 ResKit on an XP or W2k3 machine, then copy delprof.exe to where you need it.
Note that this tool will delete *any* profiles older than the age you specify; this includes the local administrator's profile as well, which is usually not that often used to logon.

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question