?
Solved

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

Posted on 2006-11-17
2
Medium Priority
?
899 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
[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
2 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 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