mass change a groups login batch file

  • Thread starter Thread starter Ray
  • Start date Start date
I posted the exact same question in the winnetmag groups.
Here is a free (though slightly clunkier) solution that was given to me.
Note, that the location of the logon script is a single .bat file (and not
the pathname, as the posting implies), since they have to be in the NETLOGON
share, but since you already have a logon script, you already know that.
I have NOT gotten this to work in a .bat itself...I had to actually type it
into a CMD window, for some reason.
=-=-=-=-=-=-=-=-=-=
This could be done with a few lines in a batch job, depending on the way you
provide the required infos to the script.

I.e., if you got a list of users that should get all the same login script.

1.)
Place all user accounts you whish to adjust in a text file (accounts.txt),
one account per line.

2.)
Perform the following from the cmd shell

for /f %i in (C:\temp\accounts.txt) do net user %i /SCRIPTPATH:Location of
the logon script

This will update all accounts with the logon script information.

Good luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top