Discussion Locked

Batch file or script

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

Does anyone know of an easy way, via batch file, or script, which will allow an administrator to change the "logon script" to every user in a Windows 2000 Domain? We have a large number of users and need to change the script in each user's profile.

Multiple suggestions are encouraged.
Thanks

Michael R.

11 replies

by cactus pete

Does each user have their own, individual logon script, different from everyone else?

If not, and you just want everyone to begin using a different script, just rename the old one to name.old and rename the new one as the old one.

Otherwise, more information would make it easier to give more ideas.

by rabbit_runner

Please check the additional notes above. This will help clear up your question. Do you have any other ideas? It would certainly be appreciated. Thanks.

by rabbit_runner

Concerning this script, about half of the users have an existing script being run. However this script, does not do anything. It was used for a previous network utility that has long been discontinued. Then the other half of the users do not have any script at all. On top of this, there are a handful of other users who have specific scripts to run for their environment.

What we are wanting to do, is to create one single script for everyone, and then incorporate the specific scripts whichthe handful has.

I hope this makes sense. It would seem that we need to add a specific new script, and we are not too keen on entering this script manually. However, if that is the case, we will then do that, but first want to search for another possibility.

Thanks.

by ewgny

You can create a single logon script, that will perform for each user, Map drives add printers etc. based on group membership. Look at this site
http://www.rlmueller.net/
I modified a logon script (#3) which mapped drives and installed printers based on group membership. You can also for example install a printer based on the computer the person is logging into.
You could apply the script via Group policy on the OU level as you refine it to users within each OU, you can delete the users profile script since it won't be needed anymore
When you finally have it functioning for all OU's, you can apply it at the domain level.
See this newsgroup for additional reference
microsoft.public.windows.server.scripting

by rabbit_runner

The URL you gave is certainly an excellent resource. However, what I failed to mention is that our environment is a mix of 2000 Pro and NT4 Workstation. To use GPO applied scripts will not work for the NT4 systems.

Do you have any other suggestions?

Thanks

by rabbit_runner

I guess that I am slipping in giving all the necessary details to this problem. What I forgot to mention is that our 2000 AD domain is in mixed mode. We also have a mix of 2000 Pro and NT4 Workstation. There are NO Win9x systems. To run the startup script via GPO would be great, but this will not apply to over half of our workstations which are NT4 workstation.
This is why we are seeking a method to change the logon script within the user's profile.

Do you have any additional ideas?Thanks.

by ewgny

My first suggestion is that you should refrain from rejecting answers on a ongoing dialog.
The information from the two sources I gave you
have all the info you need.
Good Luck

by rabbit_runner

The original question was not on how to create a script for the logon users. Creating such a script is not a problem. What we are wanting to do is find some way to 'place the script file name' into the users profile. Since we have a log of users, opening each user's profile would be a tremendous amount of work.

Thanks for your help

by info-man-

Sounds like an administration nightmare having everyone with individual scripts. Since you are already doing alot, then we will just add a little more. Create one logon that satisfies the basic needs of everyone in the company, whether it gives them all a data drive or a directory that lists all of the personal folders. Then, write a more detailed piece for the special machines and put that user specific script in each one of their startup menus. It will first run the script from the sysvolfolder. After that, the more detailed user specific script will be initialized from the individual workstation's startup menu. I have done this on a limited basis, but it is hard to maintain. I am not sure that I would recommend it, but it works.

by rabbit_runner

The original question was not on how to create a script for the logon users. Creating such a script is not a problem. What we are wanting to do is find some way to 'place the script file name' into the users profile. Since we have a log of users, opening each user's profile would be a tremendous amount of work.

Thanks for your help

This discussion is closed to new replies.