ExcludeProfileDirs for Teams does not work, neither does downloads move to local path

sm-6871 96 Reputation points
2021-01-22T11:11:08.693+00:00

Hi

Since the Teams-folder and like the Downloads-folder extremely bloat the profiles of users, I'm trying to exclude those from roaming profiles. But it wouldn't work :-/

Roaming Profiles
In the user profile I have a path to the Home folder like
\server\Users\name

as well as a path to User profile
\server\profiles\name

In GPO I have folder redirection for like Desktop and AppData

The the dialog box is configured
Setting: Basic - Redirect everyones folder tho the same location
Target: Create a folder for each user und the same root path
\server\profiles

Download-Folder
The folder Downloads I tried to sync to a location on the drive C using
Setting: Basic - Redirect...
Target: Recdirect to the following location
%Systemdrive%\Privat\%username%\Downloads

Exclusions ExcludeProfileDirs
as well as the exclusion in the registry

HKEY_CURRENT_USER
Software\Microsoft\Windows NT\CurrentVersion\Winlogon
ExcludeProfileDirs

AppData\Local;AppData\LocalLow;$Recycle.Bin; OneDrive; Work Folders; AppData\Roaming\Microsoft\Teams\;.android;AppData\Roaming\DropBox;

This exclusion is available in the registry of the user, but everytime I copy a file e.g. to the Teams-folder it is available on the server after logoff :-/

AppData\Local and LocalLow isn't redirected though, that seems to works....

What do I miss? Or what could be the reason, that it wouldn't work this way?

Any hints are aprreciated.

Thanks

P.S.
We need the roaming profiles, since people share several PCs.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,517 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,876 questions
0 comments No comments
{count} votes

Accepted answer
  1. sm-6871 96 Reputation points
    2021-02-24T16:12:33.713+00:00

    Well, first I deleted the "AppData\Local;" in ExcludeProfileDirs.
    Then I deleted the profile-path on the server and recreated it, thus it was like a new user.

    The AppData\Local was synched then, what I expected. Thus I put it back.

    Eventually, I added the Teams-path at the very beginning of the ExcludeProfileDirs Registry-key what I haven't done before.

    Weird, but from then on it worked :)

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Vicky Wang 2,646 Reputation points
    2021-01-25T08:55:07.927+00:00

    No particular engine controls roaming profiles. They instead rely on a registry value in HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon. This value is a string (REG_SZ) format and is called ExcludeProfileDirs. It tells the roaming profile what not to save from the %USERPROFILE% folder. The screenshot below shows the default values on Windows 10.
    reference:https://4sysops.com/archives/include-and-exclude-folders-in-roaming-user-profiles/

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope this information can help you
    Best wishes
    Vicky

    0 comments No comments

  2. sm-6871 96 Reputation points
    2021-01-26T10:42:42.327+00:00

    Hi Vicky

    Thanks for your answer.
    The link from 4sysops was already in my roaming profile link collection since it literally was my tutorial on how I configured everything.

    I still don't see the problem, why it wouldn't work as explained.
    There neither is a typing error or a similar small error, which could fail the commands. I've checked it like a zillion times...

    The ExcludeProfileDirs I tried with ; at the end and not etc. My guess is, that this might not be the correct registry path?

    Any hints on how to solve the problems are aprreciated.

    Thanks
    Sue

    0 comments No comments

  3. Vicky Wang 2,646 Reputation points
    2021-01-28T06:58:39.03+00:00

    Hi,
    thank you very much for your patience.
    According to your description and your counter-situation, I followed up with my colleagues and found that the solution I provided should be no problem. If you still can’t solve it, I suggest you seek the help of a senior engineer. Maybe you can help you from different aspects. solve.
    Thank you for your understanding and support
    Best wishes
    Vicky

    0 comments No comments

  4. Vicky Wang 2,646 Reputation points
    2021-02-01T09:14:33.693+00:00

    Hi,

    Just checking in to see if the information provided was helpful.

    Please let us know if you would like further assistance.

    Best Regards,
    Vicky

    0 comments No comments