The Group Policy Editor in Windows XP Professional is a management console that provides convenient configuration of many system properties and for running scripts. How It might be used is illustrated with several examples.
About the Group Policy Editor- How it worksAlthough the Group Policy Editor console (gpedit.msc) is mostly used by administrators of networks and domains, it also has uses for a stand-alone home computer. One application is to allow convenient and easy editing of the Registry so that a variety of tweaks or changes to the system can be made. These settings are known as policies and are stored in a special hidden folder%SystemRoot%\System32\GroupPolicy\ (For most home systems the environment variable %SystemRoot% is C:\Windows.) |
%SystemRoot%\System32\GroupPolicy\Machine\Registry.pol
and in similar fashion user settings are in User\Registry.pol. Policies are used to write to a special key of the Registry and override any settings elsewhere in the Registry. Since only the administrator account can access the policy settings, limited account users can be prevented from making unwanted system changes.Another useful application of the Group Policy Editor (GPE) is to provide for the automatic running of scripts or programs whenever the computer is started up or shut down or when a user logs on or off. This may be the application of most practical use to a typical home PC user.
(Note that the GPE is not present in the Home Edition of Windows XP. The usual warnings about being careful when editing the Registry apply.)
Using the Group Policy Editor
Like many other management consoles, the GPE is not listed in Start-All Programs. To open it, go to Start-Run and enter "gpedit.msc" (without quotes). Figure 1 shows one view of the console. Note that there are entries for the computer configuration and for the user configuration. Selecting either one then gives the entries shown in the right panel of the figure. Clicking plus signs in the left panel will expand the selections.Administrative templates- Example of removing the Desktop Cleanup Wizard
The editing possibilities are quite numerous and too many to cover in detail here but I will illustrate the procedure with an example that an average home PC user might be interested in. Custom configurations can be made but there are also a number of pre-existing templates that provide for a variety of standard choices. One of these is whether to turn the desktop cleanup wizard off. Personally, I am irritated by the Windows nanny that is always nagging me to remove unused icons from the desktop. This nuisance can be turned off in other ways but I will use the GPE to illustrate the general procedure for using a template. Figure 2 shows an expanded view of the GPE with Desktop templates shown.Running scripts or programs at startup/shutdown or user logon/logoff
A very useful feature of GPE is the ability to to set scripts or programs to run automatically when the computer is turned on or shut down or when a user logs on or off (Figure 4). Any executable file can be invoked. This would include files with the extensions BAT, CMD, EXE, JS, VBS and others. There are other ways to run scripts or programs at startup but not so many for shutdown so I will illustrate the script capabilities of GPE with a discussion of shutdown or logoff scripts.In Figure 4, the entry "Windows Settings" entry has been expanded and you can see entries that provide a way to add scripts for both startup and shutdown. Scripts can also be set to run when a user logs on or off by selecting "User Configuration-Windows Settings". More than one script can be run and in a particular order. Also, command-line parameters can be specified.
C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\Shutdown
There are corresponding folders for Startup, User\Scripts\Logon and User\Scripts\Logoff
I have recently started a web site, the info you offer on this website has helped me tremendously. Also it has excellent and very informative.
ReplyDeleteAsk me if u ve any prb......
ReplyDelete