Solved

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

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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.
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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