[Samba] logon script and variables
Pascal Legrand
pascal.legrand at univ-orleans.fr
Tue Sep 3 14:57:09 UTC 2019
Shame on me, it was bad permission on these scripts (not executable)
Sorry for the noise
Le 03/09/2019 à 15:35, Pascal Legrand via samba a écrit :
> Hello, a few years ago, I had encountered a problem regarding the
> inclusion of "%G" in logon script (logon script = %G.bat).
> The logon script with %G" was not executed
>
> I have this problem again with samba Version: 2:4.9.5+dfsg-5 on debian
> stable.
> Is it the same bug?
>
> For the moment i use this kind of script to use group definition :
> logon script = logon.bat
>
> logon.bat script :
> @echo off
> net user %username% /domain |find "globaux" > %temp%\1.txt
> for /F "tokens=2 delims=*:" %%a in (%temp%\1.txt) do set group=%%a
> call \\samba\netlogon\%group%.bat
> del %temp%\1.txt
>
> But i would prefere use the samba variables "%G"
>
> Thank you for your help.
>
--
Pascal Legrand
More information about the samba
mailing list