Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Please could you help me, I need to know how I can add a login script to selected users only. That is this procedure is only needed for a department students only not for every users account.
Could you help me write a batch file that will add this login script call (student.bat) to a group of students only (selected). It doesn't apply to every student.
Thank you

Hi,
You Don't need to write any spetial scripts ,
it's much easier .
If you work with NT4 :
open User Manager for Domains ( usrmgr.exe ),
select users holding ctrl key ,press properties and write the name of your login script batch file under Profile .
Of course you need to put the file to \WINNT\system32\Repl\Import\Scripts on your Domain controller first .
If you work with Active Directory ( windows2000 domain ):
Create Organization unit called for exsample "Students " .Move selected users to this OU . Right click on OU you created ,Properties , Group Policy ,New ,
Under user Configuration go to windows settings \scripts \logon add your script ,wait for 5 min to be sure that information between your domains was replicated ,tell users to logout and login again .
That's all folks .

If you have the usernames in a list you can paste them into the 2nd column of a spreadsheet, add NET USER all the way down the column before and /scriptpath:student.bat down the column after. Save as a comma delimited text file and then open it in notepad. do a find replace , with a space and then save as a batch file. Run the batch file on one of you DC's. It's usually worth running your batch file so it outputs to a log so you can easily check it all went OK.
NET USER username /scriptpath:student.bat

![]() |
![]() |
![]() |

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