jnawrocki
asked on
Windows Server 2003 w/ XP Pro Clients - How to Push out a script file making a registry change ?
To the experts-
I have a registry change script, how do I push it out to all the clients easily ? Do I have to make it a .bat file or can I make it a .scr file ?
How does this work ?
Thanks
I have a registry change script, how do I push it out to all the clients easily ? Do I have to make it a .bat file or can I make it a .scr file ?
How does this work ?
Thanks
The best method depends upon what changes exactly you're trying to make. In HKCU or HKLM, in a policies tree, a one-time setting or something to be enforced continuously?
ASKER
I understand the process, which file format would be the best? I just want to make a one-time setting change.
It's still important to know what it is you want to change. HKCU, HKLM, is the setting in a *\policies\* tree?
ASKER
It is an HKLM, in the WinLogon Tree, registry edit...
Create a list of workstations - call this file PCList.txt (PC Name only, don't use preceeding \\)
Now, run the following script: (you can clean up/remove the comments if you like, I just place them there so that you can follow the process).
::====RegMod.cmd======
@echo off
:: Batch file to add (your description) setting
:: across all remote systems contained
:: in text file PCList.txt
REM Adjust "PCList.txt" to include the full location of the file (C:\Data\PCList.txt)
:: Adjust REG ADD string below to contain the (/v) Value you want to change
:: and the (/d) Data you want reflected in that change. (/f) will force it to be
:: overwritten - remove the /f if this is not desirable.
For /f %%a in (C:\PCList.txt) do REG ADD "\\%%a\HKLM\Software\Micro soft\Windo ws NT\CurrentVersion\WinLogon " /v MyStringValue /d "DataForThatStringValue" /f
::====end of code=======
You must have local administrative rights to each pc for this to work properly.
Now, run the following script: (you can clean up/remove the comments if you like, I just place them there so that you can follow the process).
::====RegMod.cmd======
@echo off
:: Batch file to add (your description) setting
:: across all remote systems contained
:: in text file PCList.txt
REM Adjust "PCList.txt" to include the full location of the file (C:\Data\PCList.txt)
:: Adjust REG ADD string below to contain the (/v) Value you want to change
:: and the (/d) Data you want reflected in that change. (/f) will force it to be
:: overwritten - remove the /f if this is not desirable.
For /f %%a in (C:\PCList.txt) do REG ADD "\\%%a\HKLM\Software\Micro
::====end of code=======
You must have local administrative rights to each pc for this to work properly.
ASKER
Sirbounty -
can you make that code into a bat file format ?
can you make that code into a bat file format ?
CMD/Bat - same thing - just rename it to RegMod.Bat - no changes required...
ASKER
How if I just want to apply it through my GPO, can we take out the computer list in the file ? Sorry, when it comes to scripting I am a bit of an amateur..
Just run it from your workstation, or from the server. It's not being applied via a GPO, it's remotely connecting to each machine's registry. Depending on how many system you have it shouldn't take long to run - since it's a one-time process, this should be the easiest method for you.
ASKER
I would rather run it thru GPO..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
jnawrocki,
Need your help. You asked the following question in early January this year.
Solution Title: XP Pro Service Pack 2 slow network browsing via Office 2003
The Accepted Answer referred to a KB article that isn't available anymore.
Look In Box May Be Slow to Show All Available Resources
http://support.microsoft.com/default.aspx?scid=kb;en-us;822621
Do you remember what you did to fix the problem?
I have a 500 point question on this:
https://www.experts-exchange.com/questions/21506147/XP-Pro-Service-Pack-2-slow-network-browsing-via-Office-2003.html
Thanks
Need your help. You asked the following question in early January this year.
Solution Title: XP Pro Service Pack 2 slow network browsing via Office 2003
The Accepted Answer referred to a KB article that isn't available anymore.
Look In Box May Be Slow to Show All Available Resources
http://support.microsoft.com/default.aspx?scid=kb;en-us;822621
Do you remember what you did to fix the problem?
I have a 500 point question on this:
https://www.experts-exchange.com/questions/21506147/XP-Pro-Service-Pack-2-slow-network-browsing-via-Office-2003.html
Thanks
AD Users and Computers >> Your Domain Properties >> Group Policy >> Computer Settings >> Admin Templates