[THIN] Re: DelProf

  • From: "Callahan, Michael" <MichaelCallahan@xxxxxxxxxxxxxxxx>
  • To: "thin@xxxxxxxxxxxxx" <thin@xxxxxxxxxxxxx>
  • Date: Mon, 7 Mar 2005 10:00:29 -0600

Shouldn't be a big deal to translate to cmd, or you could just call the vbs
script.  I prefer script host for Win2k/2003 scripts.

-----Original Message-----
From: Michael Boggan [mailto:mboggan@xxxxxxxxxxx]
Sent: Monday, March 07, 2005 9:52 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: DelProf


Well we have a CMD that runs at reboot that cleans up the system and we'd 
like to include this in that CMD.



Michael Boggan




>From: "Callahan, Michael" <MichaelCallahan@xxxxxxxxxxxxxxxx>
>Reply-To: thin@xxxxxxxxxxxxx
>To: "thin@xxxxxxxxxxxxx" <thin@xxxxxxxxxxxxx>
>Subject: [THIN] Re: DelProf
>Date: Mon, 7 Mar 2005 09:47:58 -0600
>
>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
>
>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
>
>_________________________________________________________________
>Express yourself instantly with MSN Messenger! Download today - it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>********************************************************
>This Weeks Sponsor: RTO Software TScale
>TScale provides a cost-effective way to improve performance, capacity and
>stability for thin-client servers like Citrix MetaFrame or Microsoft
>Terminal Services running Windows NT, 2000 or 2003.
>http://www.rtosoft.com/enter.asp?id=296
>**********************************************************
>Useful Thin Client Computing Links are available at:
>http://thin.net/links.cfm
>ThinWiki community - Excellent SBC Search Capabilities!
>http://www.thinwiki.com
>***********************************************************
>For Archives, to Unsubscribe, Subscribe or
>set Digest or Vacation mode use the below link:
>http://thin.net/citrixlist.cfm
>
>**********    Confidentiality Notice    **********
>This electronic transmission and any attached documents or other
>writings are confidential and are for the sole use of the intended
>recipient(s) identified above. This message may contain information
>that is privileged, confidential or otherwise protected from disclosure
>under applicable law. If the receiver of this information is not the
>intended recipient, or the employee, or agent responsible for delivering
>the information to the intended recipient, you are hereby notified that
>any use, reading, dissemination, distribution, copying or storage of this
>information is strictly prohibited. If you have received this information 
>in
>error, please notify the sender by return email and delete the electronic
>transmission, including all attachments from your system.
>********************************************************
>This Weeks Sponsor: RTO Software TScale
>TScale provides a cost-effective way to improve performance, capacity and 
>stability for thin-client servers like Citrix MetaFrame or Microsoft 
>Terminal Services running Windows NT, 2000 or 2003.
>http://www.rtosoft.com/enter.asp?id)6
>**********************************************************
>Useful Thin Client Computing Links are available at:
>http://thin.net/links.cfm
>ThinWiki community - Excellent SBC Search Capabilities!
>http://www.thinwiki.com
>***********************************************************
>For Archives, to Unsubscribe, Subscribe or
>set Digest or Vacation mode use the below link:
>http://thin.net/citrixlist.cfm

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

********************************************************
This Weeks Sponsor: RTO Software TScale
TScale provides a cost-effective way to improve performance, capacity and
stability for thin-client servers like Citrix MetaFrame or Microsoft
Terminal Services running Windows NT, 2000 or 2003.
http://www.rtosoft.com/enter.asp?id=296
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

**********    Confidentiality Notice    **********
This electronic transmission and any attached documents or other
writings are confidential and are for the sole use of the intended
recipient(s) identified above. This message may contain information
that is privileged, confidential or otherwise protected from disclosure
under applicable law. If the receiver of this information is not the
intended recipient, or the employee, or agent responsible for delivering
the information to the intended recipient, you are hereby notified that
any use, reading, dissemination, distribution, copying or storage of this
information is strictly prohibited. If you have received this information in
error, please notify the sender by return email and delete the electronic
transmission, including all attachments from your system.
********************************************************
This Weeks Sponsor: RTO Software TScale
TScale provides a cost-effective way to improve performance, capacity and 
stability for thin-client servers like Citrix MetaFrame or Microsoft Terminal 
Services running Windows NT, 2000 or 2003.
http://www.rtosoft.com/enter.asp?id)6
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

Other related posts: