Solved

script to delete profiles older than 30days

Posted on 2004-08-06
1
324 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 85

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

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…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

689 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