How Do I Change Local Policy Settings via a batch file or script file?
Posted on 2004-09-10
I have a mix of Win9x, 2000, and XP Pro machines on our NT Network. I have set local computer policies by: (in Win9x, using Policy Editor; in W2K & XP, using the MMC).
This is a rather tedious process that I have to go through whenever I need to access the machine to do a task.
Is there a way, via a batch file or script, that I can run that will release all the polices on the local computer so that now there aren't any policies, make my changes, then reapply the policies back after I am done?
For example, a policy is set to remove the "Run" command from the start menu.
On a Win9x computer, use Policy Editor on the Local Computer\Windows 98 System\Shell\Restrictions\Remove "Run" Command is checked. On the W2K/XP computer, you would navigate to Local Computer Policy\Admistrative Template\Start Menu & Taskbar\Desktop and "Enable" - Remove Rum Command from Start Menu.
Any help would be appreciative.
Thanks in advance.