Solved

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

688 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