Solved

DelProf.exe and the Ctx_SmaUser account

Posted on 2009-05-06
4
1,267 Views
Last Modified: 2012-06-27
I would like to automate the deletion of locally-cached roaming profiles from our Citrix farm but would also like to know how to deal with the Ctx_SmaUser account before doing so. How do you use the delprof.exe tool and keep it from deleting the Ctx_SmaUser account? I would assume there would be problems as a result of deting this account. As well, I understand  /p switch can be used to prompt prior to deletion on profiles but this would not be practical.  Thanks for your insight!
0
Comment
Question by:davis
[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
  • 2
4 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 250 total points
ID: 24320914
Frankly: it doesn't matter whether you delete the profile. Files that the account has open won't be deleted, and files it doesn't have open will be recreated. delprof.exe doesn't delete accounts, it just deletes profiles; and a prompt is indeed not useful if you plan to run this unattended.
Yes, it's one of the biggest drawbacks of delprof that you can't give it an list of accounts to exclude, but it doesn't matter with the SmaUser.
Note that there's a policy to enable the deletion of the local cached copies:
Using Group Policy to delete cached copies of roaming profiles
http://support.microsoft.com/kb/274152
In addition, you can use the UPHC service to raise the probability that the cached profile actually can be deleted; together, this should tzake care of most of the problems:
User Profile Hive Cleanup Service
http://www.microsoft.com/downloads/details.aspx?FamilyId=1B286E6D-8912-4E18-B570-42470E2F3582&displaylang=en
0
 
LVL 1

Author Comment

by:davis
ID: 24325909
Right, I stated incorrectly in my posting 'account' instead of 'profile' when referring to deleting the Ctx_SmaUser.  I meant the profile...  and understand you to say that deleting the Ctx_SmaUser profile from Citrix farm servers by using DelProf is not a problem.  Is this correct?  Also, do you have any experience/recommendations for running DelProf in a script that runs on logonn or Logoff?  I believe many use it in a logon script, after the UPHC service has run on prior logoff...

thanks for your feedback!

PS - I am currently running UPHC and plan to implement the GP for 'delete cached copies of roaming profiles' as you mention above - thanks for reiterating these important components in the effort to tame roaming profiles
0
 
LVL 85

Expert Comment

by:oBdA
ID: 24327383
Running it at logon/logoff usually doesn't help much on a terminal server, because users don't have the permissions to delete profiles.
The best time is usually as *startup* script when the machine boots; at this point, all handles to profile folders that might still have been open before the reboot will now be closed.
You'd need to try for yourself what happens if you delete (at least in wide parts) the samuser's profile folder, but I've seen it being deleted on a regular basis without issues.
You can just try what happens once you've installed the UPHC service and implemented the profile deletion policy; there's a good chance that your profiles will be cleaning out without issues, but it mainly depends on the applications that are installed on the servers whether this works reliably or not. If it works out reliably, you won't even need delprof.
0
 
LVL 1

Author Comment

by:davis
ID: 24336812
Again, I misstated...  I meant a startup script , not logon.  In any case, my current plan is to go along with your recommendation to script automation of delprof only if using UPHC and deleting cached copies of profiles via GPO doesn't work as expected.  I will use delprof inttially to perform the initial cleanup of all profiles on one of the farm servers to test.  Thanks for your assistance!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Citrix XenDesktop, gold image, VMware, vSphere.
#Citrix #Citrix Policies #XenDesktop #VDI #POC #Citrix Univeral Printer Driver #Citrix UPD
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

729 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