Computing.Net > Forums > Windows Server 2003 > Login Scripts by membership

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Login Scripts by membership

Reply to Message Icon

Original Message
Name: Hawk1978
Date: September 24, 2006 at 20:50:29 Pacific
Subject: Login Scripts by membership
OS: win 2003
CPU/Ram: p4 system.
Manufacturer/Model: hp
Comment:

Hi All,

I have had a look through site and couldnt see what I am looking for.

I am a novice in creating logon scripts so please bear with me.

I am looking to create a script using a batch file that will map network drives based on a users membership.

That way each user will have access to the appropriate shares when they logon.

Our network uses a 2003 domain controller and the machines on the network are all running win xp pro.

Any help would be appreciated.

Cheers.


Report Offensive Message For Removal


Response Number 1
Name: heropsycho2177
Date: September 24, 2006 at 22:08:56 Pacific
Reply:

May want to look up basics about GPO's. If you know that they can be applied to OU's and can be filtered to security groups, between those two facts, the solution is pretty obvious.

"How many squirrels had to die to make you look fly?!"


Report Offensive Follow Up For Removal

Response Number 2
Name: krisradha
Date: September 25, 2006 at 21:20:01 Pacific
Reply:

I think you can specify the logon script in the user profile under AD users and computers-->User-->select user-->properties-->profile,

For GPO, look into www.salem-radha.com --windows 2003 hardening guide


Report Offensive Follow Up For Removal

Response Number 3
Name: MrBedo
Date: September 26, 2006 at 04:05:54 Pacific
Reply:

The quick and simple way to do this is as follows:

On your domain controller make sure the follwoing folder is shared already:

c:\WINDOWS\SYSVOL\domain\scripts

This folder should show up as 'NETLOGON' if you browse the server name. This is where you need to stick your logon batch files.
Then simply open up a users acount in Active Directory Users and Computers on the server. Go to the profile tab and in the 'Logon Script' box type the name of the batch file you want to use from the netlogon folder i.e mylogon.bat

The user should automatically run the logon script next time they log in to the PC.

Alternatively you can use active directory scripting, but if you just wanna map drives for now, stick with the above method.

Like heropsycho2177 said though, do some reading on GPOs and you'll find you can do an immense amount of things automatically and easily.



Report Offensive Follow Up For Removal

Response Number 4
Name: Hawk1978
Date: September 29, 2006 at 00:07:47 Pacific
Reply:

Thanks All.


Report Offensive Follow Up For Removal

Response Number 5
Name: dkruger
Date: October 9, 2006 at 12:00:24 Pacific
Reply:

You could also use kixtart to create scripts that would run a particular logon script based on if the user logging in is a member of a particular group. Just setting everyone to the same logon script, such as logon.bat.

In logon.bat on the server netlogon share, use a line like the following to call a kix script:

%LOGONSERVER%\NETLOGON\kixtart\kix32.exe %LOGONSERVER%\NETLOGON\logon.kix

In the logon script example (logon.kix), for each group you want a script to run, add something similar to the following, and create the actual bat file script for that group:

IF InGroup ("Marketing")
RUN "%LOGONSERVER%\netlogon\marketing.bat"
ENDIF

The kixtart program can be downloaded from:

http://www.kixtart.org/


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home



Results for: Login Scripts by membership

login script disclaimer
    Summary: Stephen, While not exactly like your requirements, check this out. The college I attended had this app in the login script and prompted users every time to accept/decline - which may be a good idea a...
www.computing.net/answers/windows-2003/login-script-disclaimer/7720.html

login script
    Summary: Hi We have Windows 2003 server with XP pro client on a network. I have some login script that maps drives, install printers at login. They are .bat and .vbs files. I have also written a .vbs file th...
www.computing.net/answers/windows-2003/login-script/5028.html

Login script to non domain account
    Summary: Hi all, I have over 70 domain win2k/xp pro laptops and workstations, that dont login to the domain, only authenticate via syncd usernames and passwords. I dont want to give them roaming profiles, as t...
www.computing.net/answers/windows-2003/login-script-to-non-domain-account/4801.html








Where do you get your digital music from?

iTunes
Amazon
Rhapsody
Elsewhere ;)
Don't have any


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History






Data Recovery Software