write a DOS script to add a string value to a registry key for multiple server within the same WIN2K3 domain.

if I need to add a string value let's say iPermit=1 under the following register key: hklm->system->currentcontrolset->control->session manager->environment of multiple domain servers, how do I write a DOS script to do that?

The path of the reg file will need to be a share e.g. \\server\share with full permissions for the computers that are going to be accessing it. Once the server has the policy, reboot it and it will post the .reg file into your servers.

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

One last qustion if you do not mind. If I need to replace a registry key with the current user ID - %username% of the system, how do I do that?

For example, if the login id is tomt, running the script will update the registry value under hklm->system->currentcontrolset->control->session manager->environment ->iuser to become tomt\\server1. If login id is maryh, after running the script will update the registry value under hklm->system->currentcontrolset->control->session manager->environment ->iuser to become maryh\\server1.

Thanks.

0

nav2567Author Commented: 2011-02-25

Please disregard. I will go ahead and grant points and create another question.....

Featured Post

Managing Active Directory does not always have to be complicated. If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why