Solved

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

Posted on 2006-11-17
2
892 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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