FSLogix: Discard everything but one folder

Markus Sheeper 1 Reputation point
2021-05-04T11:58:15.153+00:00

Hi all,
I came across FSLogix and at first it seems to be a good solution for my problem. After working a couple of days with it, I face some issues, perhaps one of you guys have an idea how to archive the goal.

We use Ctrix virtual desktop to provide our users with a Windows 10 Enterprise 20H2 Desktop, single use, meaning after logout the VM will be rebooted.
We do not use any profile sync so far, meaning after logout every user starts with a fresh and empty desktop.
That's exaclty what we want, execpt of a specific folder (i.e. Firefox profile) to remain. So everything of a user profile should be deleted after logout, expect for the firefox profile.

After some testing I tried to exclude nearly every default folder from a users profile, including Appdata and then tried to include the specific path of the firefox profile location in Appdata\Roaming\Mozilla.

That somehow works, but with the second login the profile is broken, i.e. start menu is not loading.
I found a couple of posts regarding that issue, telling to also include folders like:

    <Include>AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned</Include>
    <Include>AppData\Roaming\Microsoft\Windows\Start Menu\Programs</Include>
    <Include>AppData\Local\Microsoft\Windows\WinX</Include>
    <Include>AppData\Local\GroupPolicy</Include>
    <Include>AppData\Local\Microsoft\Windows\Caches </Include>

But that doesn't fix the issue.

Does anyone have an idea how to archive our goal?

Thanks!

FSLogix
FSLogix
A set of solutions that enhance, enable, and simplify non-persistent Windows computing environments and may also be used to create more portable computing sessions when using physical devices.
475 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Leila Kong 3,696 Reputation points
    2021-05-06T03:35:00.96+00:00

    Hello @Markus Sheeper ,

    1.There is a big problem in XenApp/XenDesktop/View and other VDI environments using roaming profiles. You’ll soon start getting errors saying you are almost out of profile storage space or that you have exceeded your profile storage space. You may try to move the profile out of the user folder and into another local folder or onto a network drive/home folder, thus reclaiming the profile storage space.
    https://www.jasonsamuel.com/2011/08/02/using-firefox-in-an-environment-with-roaming-profiles/

    2.Using Redirections.xml may cause Windows 10 start menu not working. Please check the following actual working configuration:
    https://social.msdn.microsoft.com/Forums/en-US/706a1e7d-c11b-4ac2-a73d-5ca941fa35ba/using-redirectionsxml-causes-broken-windows-10-start-menu?forum=FSLogix

    3.What's the version of your fslogix? Will it happen with FSLogix 2004 (2.9.7349.30108)?

    FYI:
    https://www.sul.de/2019/04/05/fslogix-in-a-citrix-provisioning-environment/
    https://techpress.net/how-to-set-up-folder-redirection-and-citrix-user-profiles-using-fslogix-on-citrix-virtual-apps-and-desktops-7-15/
    https://social.msdn.microsoft.com/Forums/azure/en-US/4cffcb37-7e75-4bc5-8de0-c2afadd1da2c/unclean-logoff-causing-locked-files-until-server-reboot?forum=FSLogix

    Best regards,
    Leila


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Leila Kong 3,696 Reputation points
    2021-05-10T09:30:51.41+00:00

    Hello @Markus Sheeper ,

    As you stated :"That somehow works, but with the second login the profile is broken, i.e. start menu is not loading.
    After the second Login that folder already exists, and FF can use it... very strange...":

    Is it working now for the second Login? Is only Firefox folder having this issue? Does the user have Read permissions to the file?
    How did you configure fslogix registry? Will the issue be reproduced with FSLogix 2004 (2.9.7349.30108)?

    FYI:
    https://video2.skills-academy.com/en-us/fslogix/manage-profile-content-cncpt
    https://video2.skills-academy.com/en-us/fslogix/profile-container-configuration-reference

    0 comments No comments

  3. Leila Kong 3,696 Reputation points
    2021-05-13T09:48:07.63+00:00

    Hello @Markus Sheeper ,

    Please help capture the first login fslogix log and the second login fslogix logs, then compare what are the difference between them.

    On the VM, download the support tool from
    https://aka.ms/fslogix_support_tool

    1. Run the FSLogix Support Tool.
    2. Fill in the company name (we use this to separate the information from others).
    3. click "enable logging" and Select "Gather Rule files", and "Gather Dump Files".
    4. Click "Gather FSLogix Content" ( Please note: this will take several minutes).
    5. Once complete, please locate the resulting zip file from C:\ProgramData\FSLogix\Support and attach it to your support ticket.

    96332-support-tool.png

    0 comments No comments

  4. Leila Kong 3,696 Reputation points
    2021-05-27T07:29:14.103+00:00

    Hello @Markus Sheeper ,

    We haven’t heard from you in a couple of days.
    Please post back at your convenience if we can assist further.

    0 comments No comments

  5. Markus Sheeper 1 Reputation point
    2021-05-06T12:14:11.61+00:00

    Hi Leila,
    thanks for your answer.

    1)
    That seems not to be true anymore, since current versions of Firefox make use of Appdata\Roaming AND Appdata\Local. The cache will be stored in Appdata\Local, which is excluded in our redirect.xml, so no cache in the VHD. We only include Appdata\Roaming\Mozilla, so the FF profile is working.

    2)
    The Startmenu works fine, if I include AppData\Roaming\Microsoft\Windows and AppData\Local\Microsoft\Windows. However I'll have a look at the link you provided, perhaps there is a nicer way then including the whole \Windows folders.

    3)
    We use the current version of FSLogix, v. 2.9.7654.46150

    Btw, I have also a strange issue. With the redirect.xml we use, with the first Login of a user (and so the initial creation of the vhd and the initial application of the rule set), it is not possible to start Firefox. FF error message says "no access to profile folder, or folder doesn't exsit". Indeed, if I look in the Windows Explorer for Appdata\Roaming\Mozilla\, the folder is there, but I can't open it, even in the explorer.
    If I then logout and login again, Firefox works like a charme.

    I assume the problem is releated to the initial application of the redir.xml, since all the configured folders are created by the FSlogix agent, and there seems to be a problem with the Mozilla folder somehow.
    After the second Login that folder already exists, and FF can use it... very strange...

    Here is out redirect.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <FrxProfileFolderRedirection ExcludeCommonFolders="0">
        <Excludes>
            <!-- Windows default userdata -->
            <Exclude Copy="0">3D Objects</Exclude>
            <Exclude Copy="0">Citrix</Exclude>
            <Exclude Copy="0">Contacts</Exclude>
            <Exclude Copy="0">Desktop</Exclude>
            <Exclude Copy="0">Documents</Exclude>
            <Exclude Copy="0">Downloads</Exclude>
            <Exclude Copy="0">Favorites</Exclude>
            <Exclude Copy="0">Links</Exclude>
            <Exclude Copy="0">Music</Exclude>
            <Exclude Copy="0">Pictures</Exclude>
            <Exclude Copy="0">Saved Games</Exclude>
            <Exclude Copy="0">Searches</Exclude>
            <Exclude Copy="0">Videos</Exclude>
            <Exclude Copy="0">$Recycle.Bin</Exclude>
            <Exclude Copy="0">Tracing</Exclude>
    
            <!-- Appdata -->
            <Exclude Copy="0">Appdata</Exclude>
    
            <!-- Appdata exclude subfolders of includes -->
            <Exclude Copy="0">AppData\Local\Microsoft\Windows\Explorer</Exclude>
            <Exclude Copy="0">AppData\Local\Microsoft\Windows\WebCache</Exclude>
        </Excludes>
        <Includes>
            <!-- Appdata Roaming -->
            <!-- FireFox Profile -->
            <Include>AppData\Roaming\Mozilla</Include>
    
            <!-- Windows profile systemfiles -->
            <Include>AppData\Roaming\Microsoft\Windows</Include>
            <Include>AppData\Roaming\Microsoft\Internet Explorer\Quick Launch</Include>
    
            <!-- Appdata Local -->
            <!-- Windows profile systemfiles -->
            <Include>AppData\Local\Microsoft\Windows</Include>
    
            <!-- Windows GPO systemfiles -->
            <Include>AppData\Local\GroupPolicy</Include>
        </Includes>
    </FrxProfileFolderRedirection>
    
    0 comments No comments