RE: Login Script Help

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi Bud,

Have you tried using a kixtart logon script that calls an env.txt file to
apply settings to AD groups as described in your question?

logon.bat would have something like:

echo off
rem ***** Main Logon Batch File for Users *****

rem *** KiXtart to set environment variables ***
%0\..\kix32.exe env.txt

env.txt can have:

?"Checking Operating System...."

IF (@INWIN = 1)
? "Windows NT "
? "Setting DOS variables...."
SHELL "SET USERNAME=@USERID"
SHELL "SET ADDRESS=@ADDRESS"
SHELL "SET COMPUTER=@WKSTA"
SHELL "SET DOMAIN=@DOMAIN"
ELSE
? "Windows 9x "
? "Setting DOS variables...."
SHELL "winset.exe USERNAME=@USERID"
SHELL "winset.exe ADDRESS=@ADDRESS"
SHELL "winset.exe COMPUTER=@WKSTA"
SHELL "winset.exe DOMAIN=@DOMAIN"
ENDIF

? "Checking group membership...."


IF INGROUP("SALES") = 1
Use f: "\\srv01\SALES"
Use lpt1: "\\srv01\sales_printer"
ENDIF

IF INGROUP("ACCOUNTS") = 1
Use f: "\\srv01\ACCOUNTS"
Use lpt1: "\\srv01\accounts_printer"
ENDIF

Chris



"Bud Veltman" wrote:

I have just started at a new company with approximately 65 users in house.
They are currently attempting to implement a login script that defines each
user's home share as well as mapped drives and printer assignment to include
the default printer based on group membership. The script works fine as long
as each user belongs to only one group.

How can I modify my login script to help me to segregate each user's primary
group membership and then only install the printers as per the primary
membership, or otherwise modify the script so that I can map drives for users
in multiple groups, but only printers from one group?

Please advise.

Thanks
Bud Veltman
bveltman@xxxxxxxxxx
.



Relevant Pages

  • Re: detect shell script language
    ... In the 'old' days, when a user typed in a command, the interactive shell would immediately pass it off to 'exec' to execute. ... So, on return from exec with an error status, the shell would fork a copy of itself to try and run the script. ... As a result of the above, it was hard to tell whether the script was a Bourne shell or C shell, so the convention was introduced of using the Bourne shell no op command, as the first line in a Bourne shell script. ...
    (Debian-User)
  • Re: Call for input on comp.unix.shell FAQ
    ... >> questions and just tell people to FAQ it. ... The other level is how to write shell scripts. ... How can I remove whitespace characters within file names? ... Why one shouldn't use "echo" in a script? ...
    (comp.unix.shell)
  • SHELLdorado Newsletter 1/2003 - July 6th, 2003
    ... The "SHELLdorado Newsletter" covers UNIX shell script related ...
    (comp.unix.questions)
  • SHELLdorado Newsletter 1/2003 - July 6th, 2003
    ... The "SHELLdorado Newsletter" covers UNIX shell script related ...
    (comp.unix.shell)
  • Re: Affecting Institutional Change (Yeah Right)
    ... provides labs in most non-dorm buildings replete with the wonderful ... be run from a shell, no idea what an executable was, and, in fact, ... IDE program, go through a ton of menus to pick the right script, go ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)