?
Solved

script to delete profiles older than 30days

Posted on 2004-08-06
1
Medium Priority
?
331 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
1 Comment
 
LVL 85

Accepted Solution

by:
oBdA earned 1000 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

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…
If anyone asked you to network diagram of the internet, it was drawn in the form of a fluffy cloud which further became known as cloud computing. Popularly cloud computing is defined as workloads that run over the internet in a commercial provider’s…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses

839 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