Zentyal AD logon script
<p>I've Zentyal 4.2 domain controller server.
I would like to reach that when users login to Windows, mount some network drives automatically with logon script.
(just only those drives where the user have permission)</p>

<p>The users profiles store in /home/samba/profiles/ and the users home's directory in /home/<code>&lt;username&gt;</code>.</p>

<p>This is my smb.conf netlogon parts:</p>

<pre><code>logon path = \%L\samba\profiles\%U
logon home = \%L\%U
logon script = logon.bat
[netlogon]
path = /var/lib/samba/sysvol/domain.local/scripts
browseable = no
read only = yes
</code></pre>

<p>I put the logon.bat and <code>&lt;username&gt;</code>.bat files to the followed directories:</p>

<pre><code>/var/lib/samba/sysvol/domain.local/scripts
/home/samba/profiles/&lt;username&gt;
/home/&lt;username&gt;
</code></pre>

<p>But didn't work...</p>

<p>Can you help me?</p>

<p>(sorry for my English)</p>