Add Login Script to All users in Active Directory.

Our Active Diretory user base consist of a few hundred users. We have a previous login script that we where using and would like to update it with a new script. Is there a way in AD to update everyone's login script from a command line or within AD?

so for example....... to make things clear of what I am asking

in AD, under users profile. Login Script says: Oldscript.bat

I would like to change this script so that is says: Newscript.bat

on everyone's account without manually having to do so.
spectragasesAsked:
Who is Participating?
 
PberConnect With a Mentor Solutions ArchitectCommented:
You can batch modify the users right from within the Active Directory Users and Computers MMC.

Select all the users you want by holding down the shift key and clicking each user.
Right click a selected user and select properties.
Go to profile and check off logon script and change it to the value you want.

click apply and it will modify each user.

Hope that helps.
0
 
Pete LongTechnical ConsultantCommented:
?? go to the netlogon share on a DC

locate oldscript.bat rename it to oldscript.old
paste in newscript.bat, rename it to oldscript.bat

job done
0
 
spectragasesAuthor Commented:
Some user profiles do not have the login sript which is why I would need to add it to their profile. otherwise I would do your way.
0
 
spectragasesAuthor Commented:
thank you so much... that works.... :)
0
 
PberSolutions ArchitectCommented:
Good to hear.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.