Discussion Locked

NT Group Logon Script

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hello,
i have here NT4 with server name NT01

we have 4 groups (group1,group2,group3,group4) and i wanted to use only one script for all of them. How do i do that.

here are there individual login Script.

Group1.bat
net time \\nt01 /set /yes
net use g: \\nt01\app
net use h: \\nt01\soft
net use i: \\nt01\download
net use j: \\nt01\test

Group2.bat
net time \\nt01 /set /yes
net use h: \\nt01\app
net use i: \\nt01\soft

Group3.bat
net time \\nt01 /set /yes
net use h: \\nt01\soft
net use i: \\nt01\download
net use j: \\nt01\test

Group4.bat
net time \\nt01 /set /yes
net use i: \\nt01\download

8 replies

by joseph moore

You can't assign logon scripts to user groups in NT4. You have to do that on the user level.
Open User Manager for Domains
Click on each user
Click the Profile button.
In the text box for Logon Script Name, put in the name of the BAT file that that user should use. So, if the user Bob is in group1, then put in Group1.BAT in the text box.
Click OK to save the changes.

Also, have all of the BAT files in the NETLOGON share of your PDC and BDCs. Remember, the physical path is %systemroot%\system32\repl\import\scripts.

Hope this helps.

PS: And if you need to assign a lot of users to the groups, and you don't want to do all of this User Manager clicking for hundreds of accounts, use the Net Group command from a DOS shell to script it

by sphynx

What i mean is this. The one like in Novell that you only need to manage one script for all users.
example.

mainscript.bat
if member of "group1" then goto group1
end
if member of "group2" then goto group2
end
if member of "group3" then goto group3
end
if member of "group4" then goto group4
end

:Group1
net time \\nt01 /set /yes
net use g: \\nt01\app
net use h: \\nt01\soft
net use i: \\nt01\download
net use j: \\nt01\test

:Group2
net time \\nt01 /set /yes
net use h: \\nt01\app
net use i: \\nt01\soft

:Group3
net time \\nt01 /set /yes
net use h: \\nt01\soft
net use i: \\nt01\download
net use j: \\nt01\test

:Group4
net time \\nt01 /set /yes
net use i: \\nt01\download

by bhrdwh

Login scripts run only for users not groups.
You need to ...
1. Copy the 4 login batch files in C:\WinNT\system32\repl\import\scripts.
2. In User Manager choose 4 users (belonging to the four groups & give path & file name in their profile.
3. Thsi way login script for the 4 users will run.
4. Now locate the replicate & add names of users. You need to do this for each user, choosing different login script for each user.
Thats all !

by sphynx

What i mean is this. The one like in Novell that you only need to manage one script for all users.
example.

mainscript.bat
if member of "group1" then goto group1
end
if member of "group2" then goto group2
end
if member of "group3" then goto group3
end
if member of "group4" then goto group4
end

:Group1
net time \\nt01 /set /yes
net use g: \\nt01\app
net use h: \\nt01\soft
net use i: \\nt01\download
net use j: \\nt01\test

:Group2
net time \\nt01 /set /yes
net use h: \\nt01\app
net use i: \\nt01\soft

:Group3
net time \\nt01 /set /yes
net use h: \\nt01\soft
net use i: \\nt01\download
net use j: \\nt01\test

:Group4
net time \\nt01 /set /yes
net use i: \\nt01\download

by zchris

of course you can

just download the app "ifmember.exe" from the net (http://www.franken.de/users/lisa/horshack/winnt/ifmember.exe)

and paste this (or create your own):

ifmember "group1"
if not errorlevel 1 goto group2
net time \\nt01 /set/yes
net use g: \\nt01\app
net use h: \\nt01\soft
net use i: \\nt01\download
net use j: \\nt01\test

:group2
ifmember "group2"
if not errorlevel 1 goto group2

and so on

good luck

by zchris

2 comments

. ifmember is also in the resource kit

. failure in the section "group2"
if not errorlevel 1 goto group3

thanks

This discussion is closed to new replies.