Page 1 of 1 1
Topic Options
#130114 - 2004-11-24 04:37 PM Logon Script
Anonymous
Unregistered


I asked this question elsewhere and was told to ask here since you guys can probably help. So here is my question.

I am running a W2k domain with XP, 2000 and NT clients and would like to create a logon script (that i will add to each users's account in AD users and computers) that will map drives and install printers for users. The users are part of several departments what have their own groups and access resources on several different servers. I would like to only use 1 "big" logon script (batch file or other) instead of creating individual scripts for each department.

What I want to do is create 1 login script that maps drives and installs printers according to group membership using "if" statements

EX:

If a user is a member of groupA, then map P: \\server1\share
If a user is a member of groupB, then map P: \\server2\share
etc

and i would like printers to be installed as well

If a user is a member of groupA, then install \\server1\printer
If a user is a member of groupB, then install \\server2\printer

I know i can map drives with the Net use command and know how to write a simple batch file that maps drives. But I am not sure how to create batch file or script file what will do all of this (if thats even possible)

Hope someone can help, Pls be as detailed as possible in what tools or steps are required. Thx

Top
#130115 - 2004-11-24 04:49 PM Re: Logon Script
jdogg Offline
Getting the hang of it

Registered: 2003-09-11
Posts: 91
Loc: RTP, North Cakalaka, USA
RTFM
Top
#130116 - 2004-11-24 04:56 PM Re: Logon Script
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
and read the FAQ forum.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#130117 - 2004-11-24 05:00 PM Re: Logon Script
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
To get started, check out the KiXtart Manual

In particular, look at

InGroup
Use
AddPrinterConnection
_________________________
Eric

Top
#130118 - 2004-11-24 05:03 PM Re: Logon Script
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Here's a basic script to get you started ...

Basic Login Script

Mods - do we have one of these in the FAQ's or sample scripts forum. If not, we should get one like this in there ?

-Shawn

Top
#130119 - 2004-11-24 05:25 PM Re: Logon Script
Anonymous
Unregistered


Thx for the help. I'll read all those documents, I just didn't know where to start
Top
#130120 - 2004-11-25 03:42 PM Re: Logon Script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
One should always start with the corresponding Manual.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 419 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.065 seconds in which 0.034 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org