[THIN] Re: DelProf

  • From: "Joe Shonk" <joe.shonk@xxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Mon, 7 Mar 2005 14:28:36 -0700

So what happens when the session hangs and doesn't clean up properly or the
server crashes?  You'll start getting profiles directories with
username.domain. This can break some apps.

 

Joe

 

  _____  

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Jim Kenzig Kenzig.com
Sent: Monday, March 07, 2005 12:39 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: DelProf

 

Wouldn't you be better off just using Flex Profiles along with UHPClean?


"Callahan, Michael"wrote:

I haven't used delprof since NT 4 days, so I don't know if it also cleans up
HKLM\Software\Microsoft\Windows\CurrentVersion\Group Policy\ and
similar reg keys. Does it?

-----Original Message-----
From: Jeff Malczewski [mailto:jeff.malczewski@xxxxxxxxx]
Sent: Monday, March 07, 2005 1:18 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: DelProf


Exactly... DelProf should be used to do this..


On Mon, 7 Mar 2005 09:24:59 -0700, Joe Shonk wrote:
> But this only cleans out the directory... How are you cleaning up the
> registry (ProfileList, GuidList, UserInstall)?
> 
> -----Original Message-----
> From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf
> Of Callahan, Michael
> Sent: Monday, March 07, 2005 8:48 AM
> To: thin@xxxxxxxxxxxxx
> ; Subject: [THIN] Re: DelProf
> 
> I use group policy to clean out cached copies of roaming profiles; I also
> have the following script set up to run at startup in group policy for my
> terminal servers as a backstop to that:
> 
> 'Start script
> On Error Resume Next
> 
> sScriptFullName = WScript.ScriptFullName
> sScriptPath = Left(sScriptFullName, InStrRev(sScriptFullName, "\"))
> Set oShell = WScript.CreateObject("WScript.Shell")
> Set oFSO = CreateObject("Scripting.FileSystemObject")
> Set oWshSysEnv = oShell.Environment("Process")
> sSysdrive = oWshSysEnv("SYSTEMDRIVE")
> 
> mstrPath = sSysdrive & "\" & "Documents and Settings"
> Set oFolder = oFSO.GetFolder(mstrPath)
> For Each oSubFolder In oFolder.SubFolders
> Select Case oSubFolder.Name
> 
> Case "All Users"
> 
> Case "Default User"
> 
> Case Else
> 
&g t; oFso.DeleteFolder oSubFolder,1
> 
> End Select
> 
> Next
> 'End Script
> 
> I recommend setting this as a startup script to ensure that you don't have
> any open file issues that would prevent the profiles from being deleted.
> This method works fine for me.
> 
> -----Original Message-----
> From: Michael Boggan [mailto:mboggan@xxxxxxxxxxx]
> Sent: Monday, March 07, 2005 9:25 AM
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] DelProf
> 
> Does delprof work with Win 2000/2003 profiles? i need to create a script
to
> 
> clear out profiles before rebooting. will it work or do i need something
> else?
> 
> Thanks,
> 
> Michael Boggan
> 
> 

Other related posts: