Solved

script to delete profiles older than 30days

Posted on 2004-08-06
1
319 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 82

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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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…
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now