You do not need to change any registry settings, just store the users logon bat
in the share netlogon and it is up and running.
As you provision your samba4 the netlogon will be created with the right
permission. Just use this share.
In your case you choose the name of the user to point to the right logon script:
U%.bat, ex: administrator.bat. Nothing else will
Work.
-----------------------------------------------
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 samba1 at nym.hush.com
Gesendet: Freitag, 24. Januar 2014 15:02
An: samba at lists.samba.org
Betreff: [Samba] Win7 login script not running
I?ve got a 4.1.3 Samba PDC Server on Debian Wheezy. It?s running in Classic
mode ? all existing clients are Windows XP Pro.
I?m installing a Windows 7 Pro 64-bit PC, and have managed to join it to the
domain, but can?t get the user?s login script to run.
The login scripts work fine on XP.
The pertinent sections of smb.conf contain:
logon script = %U.bat
logon drive = G:
[netlogon]
path = /home/netlogon
locking = no
guest ok = no
root preexec = /home/netlogon/loginscript.pl %U %M %m root postexec =
/home/netlogon/logoutscript.pl %U %M %m read only = yes browseable = no veto
files = /*.pl/
I?ve tried changing things such as the ?read only? and ?guest ok?
parameters.
The login script for the user is being created in /home/netlogon.
It?s also being removed when the PC is shut down.
I?ve tried a few registry entries including:
HKLM\System\CurrentControlSet\Services\Lanman\Workstation\Parameters
DomainCompatibilityMode DWORD 1
DNSNameResolutionRequired DWORD 0
HKLM\System\CurrentControlSet\Services\Netlogon\Parameters
RequireSignOrSeal DWORD 1
RequireStrongKey DWORD 0
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
RunLogonScriptSync DWORD 1
HKLM\Software\Policies\Microsoft\WindowsNT\CurrentVersion\Winlogon
SyncForegroundPolicy DWORD 1
I also set the LanManager Authentication Level to LM & NTLM responses.
Drive G: is being mapped to the user?s home directory. I also placed a copy of
the login script there (in case it was trying to run from there rather than from
the netlogon share.
I can map drives manually, and access the shares ? I just can?t get the login
script to execute.
Thanks very much.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba