davis
asked on
DelProf.exe and the Ctx_SmaUser account
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!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
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!
ASKER
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