And handle.exe

Great for finding locked files.

I would try to stick with the v3.42 edition, though, as the later ones have
been a little bit more unstable (especially v3.43)


*ASB *(Find me online via About.Me <http://about.me/Andrew.S.Baker/bio>)
 *Exploiting Technology for Business Advantage...

 *



On Tue, Mar 22, 2011 at 4:05 AM, James Rankin <[email protected]> wrote:

> On XenApp 5 and 6 we generally have a nightly or bi-nightly reboot, then at
> startup run this script to get rid of any "hung" profiles (this works on
> 2008 and 2008 R2, needs a slight mod for 2003)
>
> *@echo off
> setlocal
> setlocal enableextensions
>
> for /f "skip=1 tokens=4*" %%a in ('dir "%systemdrive%\Users"^|find
> "<DIR>"^|find /v ".."') do set profile=%%a %%b& call :REMOVE
>
> set profile=
> endlocal
> goto :eof
>
>
> :REMOVE
>
> :: Remove the profile directory completely
>
> rmdir /S /Q "%systemdrive%\Users\%profile%"
>
> goto :eof*
>
> However it is often best to try and identify the root cause of the profile
> lock. VMWare Tools, installed with the "Complete" option, can cause this.
> Process Explorer and Process Monitor may help identify this.
>
>
> On 22 March 2011 05:40, Sean Martin <[email protected]> wrote:
>
>> Thanks for the info. However, we experience the problem on our XenApp5
>> servers (Windows 2003). We've tried running delprof as a shutdown script,
>> startup script, and both. Ocassionally something just locks a file within
>> the user profile so it can't be deleted entirely, which leaves the root
>> folder behind. The next time that person logs into the server, a new profile
>> directory is created <username.domain>.
>>
>>
>> On Mon, Mar 21, 2011 at 3:16 PM, Crawford, Scott 
>> <[email protected]>wrote:
>>
>>>  Delprof fails on windows 7 with antivirus software.  AV updates the
>>> last accessed attribute on the files so delprof thinks they’ve been used
>>> recently.  There’s a hotfix available, but the fix is included in SP1.
>>>
>>>
>>>
>>> Not sure if that’s relevant to your situation, but it bit us.
>>>
>>>
>>>
>>> *From:* Sean Martin [mailto:[email protected]]
>>> *Sent:* Monday, March 21, 2011 6:12 PM
>>>
>>> *To:* NT System Admin Issues
>>> *Subject:* Re: Large user profiles on server
>>>
>>>
>>>
>>> We use a combination of delprof and uphclean in our Citrix environment.
>>> However, we still run into issues where profile directories haven't been
>>> fully purged.
>>>
>>>
>>>
>>> - Sean
>>>
>>> On Mon, Mar 21, 2011 at 11:46 AM, Rankin, James R <[email protected]>
>>> wrote:
>>>
>>> Uphclean is now the user profile service on 2008
>>>
>>> Typed frustratingly slowly on my BlackBerry® wireless device
>>>  ------------------------------
>>>
>>> *From: *Kim Longenbaugh <[email protected]>
>>>
>>> *Date: *Mon, 21 Mar 2011 18:29:05 +0000
>>>
>>> *To: *NT System Admin Issues<[email protected]>
>>>
>>> *ReplyTo: *"NT System Admin Issues" <
>>> [email protected]>
>>>
>>> *Subject: *RE: Large user profiles on server
>>>
>>>
>>>
>>> Will “uphclean” work for you?
>>> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=1b286e6d-8912-4e18-b570-42470e2f3582&displaylang=en
>>>
>>>
>>>
>>>
>>>
>>> *From:* Tom Miller [mailto:[email protected]]
>>> *Sent:* Monday, March 21, 2011 10:43 AM
>>> *To:* NT System Admin Issues
>>> *Subject:* Large user profiles on server
>>>
>>>
>>>
>>> Folks,
>>>
>>>
>>>
>>> I use terminal server roaming profiles.  We find we need to periodically
>>> delete local profiles, since one of our applications leaves temporary files
>>> behind and they fill the profile limit after a while.
>>>
>>>
>>>
>>> What I am seeing is that either logged in as local administrator or
>>> domain admin, the delete option is greyed out on my Windows 2008 servers.
>>> This isn't an issue on the 2003 servers.  Users are not logged in, so the
>>> profiles should not be locked.
>>>
>>>
>>>
>>> Suggestions?
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Tom
>>>
>>>
>>>
>>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to