?
Solved

script to delete profiles older than 30days

Posted on 2004-08-06
1
Medium Priority
?
326 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 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

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 you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

764 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