Group:  English: General ยป microsoft.public.windows.group_policy
Thread: How can I save files in USERNAME\LOCAL SETTINGS\ when user logs of

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

How can I save files in USERNAME\LOCAL SETTINGS\ when user logs of
jeutix 12.07.2007 08:10:01
Hi

We have an application which creates files in USERNAME\LOCAL
SETTINGS\APPLICATION DATA to store informations about the printer the user
use.

We have roaming profiles in our environment. When the user logs off, the
files in the directory mentioned are not replicated to the profile path, so
when the user logs in again, he has to define the printer settings again.

We have asked the vendor why this is so, but no answer right now.

My question: Is it possible via GPO to include a directory in this path to
replicate to the profile?

Thanks for support!

--
Greetings
Udo
MCSE / CCA
Re: How can I save files in USERNAME\LOCAL SETTINGS\ when user logs of
"Rolf Lidvall" <no_direct_email[ at ]me> 12.07.2007 13:46:28
It works like this:
The "Local Settings" folder is excluded from the Roaming Profile
by default, I.E. it exists in (from the Deafult User profile template):

HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
"ExcludeProfileDirs"
Local Settings;Temporary Internet Files;History;Temp

(The reason "Local Settings" is excluded by default is that it can contain
a HUGE amount of redundant files/folders and including that folder in the
Roaming Profile could increase logon and logout times A LOT.)

With standard Group Policies you can only ADD excluded folders to this
default,
not delete or change anything in the default settings
(it is setting 510 on the "All" tab in the Group Policy Reference)
http://www.microsoft.com/downloads/details.aspx?FamilyID=7821C32F-DA15-438D-8E48-45915CD2BC14&displaylang=en
USER Administrative Templates\System\User Profiles
"Exclude directories in roaming profile"

Folders excluded with this GPO are written to:
HKCU\Software\Policies\Microsoft\Windows\System]
"ExcludeProfileDirs"

(N.B this is NOT the same place in the registry as where the
default settings are)

Windows then merges these two registry keys and put the result in a file,
in the Roaming Profile; ntuser.ini.

It is in a human readable fomat; Unicode (it's also marked "hidden").
This is the file that the Roaming Profile process is reading when
it determines which folders to exclude.

One way you could try is to delete the "Local Settings" value (script) from
the default and then in the GPO exclude all Local Settings\subfolders except
Local Settings\Application Data

I have not tried this myself and I'm not sure how well Windows handles
subfolders in this GPO, but maybe it's worth a try. It's the only solution
that comes to my mind.


Regards
Rolf Lidvall
Swedish Radio (Ltd)


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net