[Samba] Multiple Login scripts
Natxo Asenjo
natxo.asenjo at gmail.com
Wed Nov 16 21:17:24 GMT 2005
>
> Hi,
> jep it can be done , use ifmember.exe from the resource kit,
> and install printers by group membership
> like this
>
> #defautllogin.bat
> @echo off
> ifmember /v /l "YOURDOMAINNAME\teachers"
> if errorlevel 1 call teachers.bat
>
this is fine but for the fact that you need to install the ifmember.exe in
*all* the computers. We use the poorman's version of it which works fine and
needs nothing at the client(1):
net group /domain groupname | find /i "%username%"
if errorlevel 0 call teachers.bat
(1)win 2000 or newer only.
More information about the samba
mailing list