Solved

Best way to delete old TS profiles on \\server\share

Posted on 2006-11-17
2
889 Views
Last Modified: 2012-06-22
Hello all,

2003 sp1 Terminal Servers and DC's.

I have a share set aside for ts profiles.  It's more or less full.  There are a number of older profiles I would like to remove.  I understand that these profiles are created with only the user as owner and no other access.  I can, one-by-one, take ownership and delete them..but that's really tedious.  Does anyone have a good way to delete a bunch (but not all) ts profiles en masse?  I've got Enterprise Admin Creds.

I set the GPO Computer Config -> Administrative Templates -> System -> User Profiles -> Add Adminstrators security group to roaming user profiles

to enable.  I then logged onto the TS with a fresh user...logged off and verified the new profile was copied to the share.  I still lacked access.  My suspicion is that roaming is not equal to TS roaming...

thanks,
0
Comment
Question by:ucstechinfo
2 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 500 total points
ID: 17970861
Try using killbox or move on boot on them

Use GiPo@MoveOnBoot
http://www.gibinsoft.net/gipoutils/bin/moveonb.exe
Instructions for use http://www.download-free-games.com/removing_dm_exe.htm

Try using "KillBox" on the file
http://www.broadbandmedic.com/download/VbStuff/TheKillBox.zip

Or perhaps you could put TAKEOWN in a script or batch file and do them on mass

Try using TAKEOWN from the resource kit to force ownership and delete the file
http://www.dynawell.com/support/ResKit/win2k.asp
0
 
LVL 1

Author Comment

by:ucstechinfo
ID: 17993933
Hi Pete,

takeown did the trick.

Here's what I'm doing: takeown /R /d y /F whateverthefoldernameis

This isn't enough by itself...you still need to use cacls for a few stubborn files:

echo y| cacls whateverthefoldernameis /t /g username:f

Now I'm looking to put this together into a .vbs script and pass a csv to the.  This is ambitious as I'm a vbs noob.

Any pointers would be appreciated
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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