Roaming Profiles not unloading correctly

Posted on 2007-10-15
Last Modified: 2013-11-21
Hi All,

Server 2003 sp2
Citrix PS4
Roaming profiles set to delete on the citrix servers on log off.

I am having an issue where the profiles are not fully deleting correctly which is causing a 2nd profile to be created if the user hits the same server.


user log on and downloads the roaming profile peterjones
profile folder is created and the user works away.

user logs off, the folder is not deleted form the server.

user logs back on but a new profile folder is created - peterjones.domain

the original peterjones profile folder is empty.

the issue is that an application we use points at static locations in the profile eg signatures.

this causes problems as the app is pointing at ........\peterjones\.......\signatures
where as the signature folder with the signature in it is at

any ideas on how to remedy this greatly appreciated.

Question by:gareth629
    LVL 82

    Accepted Solution

    You can try if the UPH Cleanup Service helps with the profile deletion issue:
    User Profile Hive Cleanup Service

    But the main issue is the application you're using: as you noticed, you can *never* rely on the profile folder being C:\Documents and settings\%username%.
    The application needs to query the OS for the user's profile folder using the proper API call (no, I'm not a programmer, so don't ask me which one), not jump directly into a folder that is more or less likely to exist. Another possibility to get the user's correct profile root is to check the environment variable "%UserProfile%" (though this won't return the correct path if a folder like "My Documents" is redirected!).
    LVL 36

    Expert Comment

    by:Carl Webster
    I have seen two things cause this problem: badly written program taht doesn't release a registry hive and screwed up permissions on the profile folder tree.

    UPHClean helps with the first and some dective work is required for the second.  I have seen admins doing a security audit on file shares who remove permissions from the profile file share.  I have also seen profile file shares that had no permissions (still wonder how that even got set).

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    #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…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now