[Samba] documentation for configuring folder redirection

John Heim jheim at math.wisc.edu
Mon Aug 6 08:24:39 MDT 2012


Well, a key point here is that I am not asking how to do folder redirection. 
I'm asking for documentation on how to do folder redirection.  I would like 
to turn the task of actually configuring folder redirection over to the 
Windows system admin.  I need a URL I can pass on to him and say, "I got 
roaming profiles working.  I have configured a redirect share. Now read this 
and see if you can get folder redirectin working."

I am beginning to suspect that this document does not exist.  I have gotten 
several private messages from people who said they were planning to document 
it though. :-)

----- Original Message ----- 
From: "Daniel Müller" <mueller at tropenklinik.de>
To: "'John Heim'" <jheim at math.wisc.edu>; <samba at lists.samba.org>
Sent: Friday, August 03, 2012 1:45 AM
Subject: Re: [Samba] documentation for configuring folder redirection


You think about something like this (it is tricky beware with windows 7 it
is quiet different), done with kixtart, redirect all folders for clients
other than windows 7:


EX:

;we redirect folders tot he server

;wir setzen ein reg eintrag um zu prüfen ob wir schon was kopiert haben
;zunächst gibt es diesen Eintrag schon?



; we test on windows 7, if windows  7 no redirection

If InStr(@PRODUCTTYPE, "Windows 7")
?"@userID"

;copy "C:\Users\@userID\*"  "S:\@userID\"






else



$RETURNCODE=EXISTKEY("HKEY_CURRENT_USER\tpdc")

;if above reg key not exist create it




IF NOT $RETURNCODE=0
ADDKEY("HKEY_CURRENT_USER\tpdc")

;the following entry will be deleted after all is done

ADDKEY("HKEY_CURRENT_USER\tpdc\FIRST_LOGIN")
ENDIF
; do only when FIRST_LOGIN



$RETURNCODE=EXISTKEY("HKEY_CURRENT_USER\tpdc\FIRST_LOGIN")






;IF NOT $RETURNCODE=0 if 0 wenn the entry exists

IF  $RETURNCODE=0
;




$RETURNCODE=EXISTKEY("HKEY_CURRENT_USER\tpdc\profile_copied")
IF NOT $RETURNCODE=0
;if there is a profile folder




IF EXIST("\\tpdc\@userID\@userID\profile")

copy "\\tpdc\@userID\@userID\profile\Eigene Dateien\*" "\\tpdc\@userID\"

ENDIF



; windows 7?

IF EXIST("\\tpdc\@userID\@userID\profile.V2")

copy "\\tpdc\@userID\@userID\profile.V2\Eigene Dateien\*" "\\tpdc\@userID\"

ENDIF





;hint that Personal Folders are copied
ADDKEY("HKEY_CURRENT_USER\tpdc\profile_copied")

;set the regs on the server

WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\Shell Folders","Personal","\\tpdc\@userID","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\Shell Folders","My Pictures","\\tpdc\@userID\Meine Bilder","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\Shell Folders","My Music","\\tpdc\@userID\Meine Musik","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\Shell Folders","My Videos","\\tpdc\@userID\Meine Videos","REG_SZ")




WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\User Shell Folders","Personal","\\tpdc\@userID","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\User Shell Folders","My Pictures","\\tpdc\@userID\Meine
Bilder","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\User Shell Folders","My Music","\\tpdc\@userID\Meine Musik","REG_SZ")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Expl
orer\User Shell Folders","My Videos","\\tpdc\@userID\Meine Videos","REG_SZ")

;jetzt sollen Server profile nicht mehr lokal gecached werden 16.07.07 wird
über ntconfig.pol abgebildet
;$PFAD="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\"

If InStr(@PRODUCTTYPE, "Windows 7")


WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\","DeleteRoamingCache","0000001","REG_DWORD")
ENDIF


;
ENDIF
;first login delete

$RETURNVALUE=EXISTKEY("HKEY_CURRENT_USER\tpdc\FIRST_LOGIN")
IF $RETURNVALUE=0
DELKEY("HKEY_CURRENT_USER\tpdc\FIRST_LOGIN")
ENDIF


;ENDIF for Win7
ENDIF

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im
Auftrag von John Heim
Gesendet: Donnerstag, 2. August 2012 23:01
An: samba at lists.samba.org
Betreff: [Samba] documentation for configuring folder redirection

I believe that once you have roaming profiles configured, all you need to do
to configure folder redirection is set some registry keys. I'd like to turn
that job over to our Windows sys admin. Can someone provide me with their
favorite documentation for configuring folder redirection? Keep in mind I am
passing this link along to a Windows sys admin. Our backend is samba 3.6.3
if it matters.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba 


More information about the samba mailing list