Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LOGIN SCRIPTS

Status
Not open for further replies.

StressedTechie

Technical User
Jul 13, 2001
367
GB
Hi

I have just started a new job and Have been dropped in the deep end. I have inherited a network that requires serious development. I am from a Novell background really and only dabbled even then.

We are running NT backoffice small business server 4.5. Our Workstations are running various OS's ranging from Windows 95,98,ME to 2000.

The trouble is they havent got any login scripts setup. So the drive mappings on different machines are not uniform. A Nightmare as you can well Imagine.

I need to create two scripts one for the managers and one for General users. The trouble is I have no idea how to set these up and how to assign the different scripts to the different users Managers and General.

I have never created a login script in my life. I think it is probably quite easy but just wanted some advice before ploughing in.

All advice most welcome.
Thanks guys
Nathan
 
You need to create the login scripts and place them in the NETLOGON share on your PDC and BDC.

Create two login scripts "General.bat" and "Manager.bat"

Once you are finished creating the files, go to User Manager for Domains and select all the users using the General.bat login script. Click User / Properties from the menu and click on the "Profiles" button. You will see a place to enter the login script name. You just need to enter General.bat (no path). Click OK and then repeat for the Manager.bat users.

Hope this helps

Richard
 
if you have the NT resource kit installed, i would recommend using the kixtart scripting language. it allows you to create more powerful login scripts than normal NT (the only thing NT does is allow you to run a batch file). i was a novell guru for years and have been turned to the dark side (NT that is). you'll find that kixtart most resembles a novell login script.
 
I would also recommend KixTart Logon scripts. They are readily used by the NT industry. One of the main benefits is that many common scritps are already written for you. In addition, it is very easy to create your own scripts.

If you are interested, go to The latest version of this software can be downloaded from this site. This software is completely FREE. In this site, there is a POST board where you can ask questions and get answers.

You should install Kixtart on all of your domain controllers (at least this is how I did it.) It takes about 30 seconds to install. You will notice a Kixtart logon service running on your DC's afterwards. Then you must copy a few files in the \\DCservers\netlogon directory. Once these two steps are completed, you can start writting logon scripts.

The concept mentioned above is correct. You may need to create more then once logon script. However, with Kixtart, you have the ability to simplify your logon scripts by just creating one.

In Kixtart scripting, you can map drives based on what NT group they are in. Here is a basic example:


CLS
;******* Home share mapping *******
use H: /delete
use H: @HOMESHR

;*** Drive mapping just for Managers ****
IF INGROUP("MANAGERS")
USE M: "\\Server\Managershare"
ENDIF

;**** Drive mapping for normal users *******
IF INGROUP ("everyone")
USE Z: "\\Server\Everyoneshare"
ENDIF


Hope this helps a bit...then what you would do is have all users run this script. The script has logic in it that would map certain drives based on what groups they belong to. For example, if user BOB belongs to both managers and everyone, he would get both mappings M and Z. If Mary was just a user (not a manager), she would run the same script but just get the Z mapping.

Later!! Joseph L. Poandl
MCSE 2000
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top