How to exclude directories from roaming profiles, to stop going over quota

(this is a repost)

Hi,

I support a fleet of 600 XP SP3 PCs, and frequently have issues where they go over their 100Mb GP enforced profile quota. Server is 2003 SP2. The quota was setup as follows.

- Open Group policy object editor then go to "User Configuration\Administrative Templates\System\User Profiles"
- Limit profile size is set to 100Mb. This is working.

Trouble is, we have a number of apps that write to %userprofile%\application data that I need to exclude from the quota.

I've configured the GP object "exclude directories in roaming profile" to be enabled, with "Prevent the following directories from raoming" as follows;

Oracle Jar Cache;Spark;Application Data\Adobe;Local Settings;Application Data\U3;Application Data\Macromedia;Application Data\Sun

Saved and reboot the PC. All GP changes made on the same box that the PC logs on to, so no replication issues. I still get proquota complaining about application data\adobe stuff. Have run gpresult and the policy is being run on PC.

The GP changes I made are stored here... which doesn't work for me.
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]

Howeve, I found this link;
http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/RegistryTips/Disable/Disablecachingofroamingprofiles.html
which makes ref to another registry key;

Hive: HKEY_CURRENT_USER
Key: SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Name: ExcludeProfileDirs
Type: REG_SZ
Value: Temporary Internet Files;Cookies;Recent;History;Local Settings\Application Data\Microsoft\Outlook

When I append my app data\adobe directory onto the end of this key, save and restart proquota, all works well.

Does anybody know how ths stuff is supposed to work properly? Does it? Do I need to blank the reg key above to get the GP working perhaps?

Any assistance would be appreciated.

Thanks,

Stephen


Further info -
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System
Oracle Jar Cache;Spark;Application Data\Adobe;Local Settings;Application Data\U3;Application Data\Macromedia;Application Data\Sun

Yet proquota picks up "Application Data\Sun" as an immediate size issue.
stephen_wallaceAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hutnorCommented:
Why have you not used the registry key to fix the problem on all your other PCs?
stephen_wallaceAuthor Commented:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System
Gets my intended GP setting below;

Oracle Jar Cache;Spark;Application Data\Adobe;Local Settings;Application Data\U3;Application Data\Macromedia;Application Data\Sun

Proquota immediately picks up that the contents of Application Data\Sun as being too big for the quota ¿


*However*, there is an existing registry setting which I did not introduce;
Hive: HKEY_CURRENT_USER
Key: SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Name: ExcludeProfileDirs
Type: REG_SZ
Value: Temporary Internet Files;Cookies;Recent;History;Local Settings\Application Data\Microsoft\Outlook

If I add Application Data\Sun to the key above, proquota is happy immediately post restart.

The final twist, if I blank the key above, then the original GP works

Is this expected behaviour?  i.e. I’ll need to create a job for all PCs to blank SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon before the correct GP key will be recognised - HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System

?

Thanks for your help.
hutnorCommented:
You just need to set the right GPO setting so your quota will work. If you make the key SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon blank then the "Temporary Internet Files;Cookies;Recent;History;Local Settings\Application Data\Microsoft\Outlook" could be counted in your profile.

Have you tried only using the Key: SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon to make your quota work? It could be the better key to exclude data from the profile quota.
This means leave the key HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System on the default.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

stephen_wallaceAuthor Commented:
Thanks again for the very fast reply. I'm still a little confused as follows;

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\SystemExcludeProfileDirs

...is where the GP updates, which does not appear to work if I have anything in here;

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

I understand that I could add missing entries to first key if required to ensure I don't miss anything (like Temp Int File), before blanking the second key.

Do you believe that this is expected behaviour, or just a quirk with the OS requiring the above hack to solve?

I appreciate your input.
hutnorCommented:
I think it is expected

You have two keys changing the same setting. The OS will read the keys & try apply them both. When it applies two different keys to the same spot(ExcludeProfileDirs) it must confuse the computer so it will only apply part of the two settings.
By making one blank you are then removing the need for the OS to try set two different settings at the same time.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stephen_wallaceAuthor Commented:
Good enough for me, thanks for your help.
stephen_wallaceAuthor Commented:
Very fast response. Suspected plot by Microsoft to confuse us all :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.