[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Active Directory - SMB/LDAP Switch



Here is how I do it (files are in netlogon share on PDC)

startup.bat:

REM Change directory to P:\
cd p:


REM If the folders My Documents and Desktop REM don't exist in P:\ create them.

IF NOT EXIST "P:\My Documents\." MD "P:\My Documents"

IF NOT EXIST "P:\Desktop\." MD "P:\Desktop"

REM Now that we are certain that both directories exist,
REM run regedit silently using the file on osprey.


regedit /s \\osprey\netlogon\mydoc.reg


REM This didn't work... REM regedit /s \\osprey\netlogon\logoff.reg

:END

===================

mydoc.reg

REGEDIT4



[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]

"ExcludeProfileDirs"="Local Settings;Temporary Internet Files;History;Temp;My
Documents;Desktop"



[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders]

"Personal"="P:\\My Documents"

"Desktop"="P:\\Desktop"



[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders]


"Personal"="P:\\My Documents"

"Desktop"="P:\\Desktop"

==============

You can see here the first thing I do with the reg file is define which
directories I exlude from roaming.

Then I modifiy the entries that tell where to point My Documents (personal) and
desktop.




--
Jason Ingalls
Ellsworth School Department
IT Specialist
207-667-4722 Ext. 5529
jingalls (at) ellsworthschools.org


Quoting Mark Gumprecht <gumprechtm msln net>:



Jason Ingalls wrote:


Perhaps the most important lesson we learned was that the profile directory and
home directory MUST be different! What we decided to do was use roaming
profiles, but exclude the Desktop and My Documents directories from roaming to
cut down on logon/logoff time (by merging a .reg file via logon script). We
instead chose to use folder redirection (by merging a .reg file via logon
script) for those two folders. We thought (wrongly) that since these folders
would be exluded from roaming the redirected folders could live amongst the the
other profile directories. What this resulted in was files that would randomly
disappear from the Desktop and My Documents folders. Ultimately we stuck with
using folder redirection, but we redirected them to the home directory and put
the profiles in /home/profiles/username. This made me happier than putting the
profiles in the default location because we have a large partition for /home.



Does anyone have a howto on redirect or a url?
Thanks
Mark

--
Mark Gumprecht
Data Systems Specialist
MSAD3
Unity, ME
gumprechtm msln net

_______________________________________________
K12OSN mailing list
K12OSN redhat com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>




---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]