Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


April 1997

Further Explorations of the NT System Policy Editor


RSS
Subscribe to Windows IT Pro | See More System Policies Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Using SPE as a Remote Registry Editor
You already know that you can use SPE to create policy files that automatically update an NT system's Registry. Perhaps you don't know, however, that you can also use SPE to directly edit the Registry of the local or remote NT computers. Let's say, for example, that you don't want to implement a domain-wide system policy, but want to use SPE to quickly and easily make the kinds of changes that Tables 1 and 2 describe to selected machines throughout the domain. Luckily, SPE lets you do this.

Imagine
creating a template that the system automatically
applies to an NT workstation's Registry.

To open the Registry of a remote machine (which requires that you have administrative access to that machine), choose Connect from SPE's File menu. In the dialog box that appears, enter the NetBIOS name of the computer whose Registry you want to connect to (e.g., \\SEAN_PPRO). Next, in the Users on Remote Computer dialog, select the currently logged-on user (typically you'll find only one) whose user profile you want to modify. (If you plan to modify the user profile of a particular user, first make sure that the user is logged on to that computer; otherwise, you can't edit the user's profile via SPE.)

At this point, SPE displays icons for a computer and user as usual, but this time, the icons represent live entries from an NT system's Registry rather than a static system policy file. You can now make the same kinds of changes you usually make, but in this case, NT will change only that particular machine's configuration. When used this way, SPE is a graphical front-end for editing portions of the Registry. It provides better explanations of the Registry entries you're modifying and an easier interface for making the modifications than the standard NT Registry editors.

Some Potential Gotchas
Look out for a few gotchas with SPE. First, be careful editing system policies. Mistakes are easy to make, especially with items that are negative statements such as "Do not display last logged on user name," or "Disable Registry Editing Tools." Disabling these entries means that you do want that statement to be true (e.g., if you clear the check box to disable the first entry mentioned, you're saying, "Do display last logged on user name"). If you're not careful, you can set up an entry to do exactly the opposite of what you intend. Remember also that you are not obligated to set a checked or unchecked state for every item in the display. If a particular entry is irrelevant for your organization or already defaults to the correct value, you don't need to enable or disable the value.

Also, put the policy file for your domain in the proper place on the Primary Domain Controller (PDC). For system policies to take effect, the PDC must find a policy file, ntconfig.pol, in its NETLOGON share, which is the %SYSTEMROOT%\SYSTEM32\REPL\IMPORT\SCRIPTS folder by default. If the file is there and named correctly, the NT clients will automatically receive the Registry updates (in the system policy file) that are appropriate for their machine (based on the computer name, username, and group memberships). If the file has a different name or is elsewhere on the PDC, client workstations won't properly locate and process it.

Another oft-overlooked item is the failure to create special provisions for administrators and power users. The failure to create exception policies for these users when you define a system policy file can cause unnecessary restrictions on their desktop environments until you redefine the policy. When you create a new system policy file, set up policies with the appropriate settings for these users, right off the bat.

Finally, a special gotcha can occur in some multidomain environments. You can have problems when users log on to their domain account with a computer in another domain but the domains don't use system policies. Remember the source of a system policy is always the user's logon domain and not (necessarily) the domain where the computer is physically located.

Let's say you log on using your account in the SALES domain (your home domain) from a machine in the FINANCE domain (a foreign domain trusting the SALES domain). If system policies are in effect in the SALES domain, the machine you're logging on to will receive all the system policy updates. Even after a user logs off the machine in the FINANCE domain, the policies will remain in effect because later FINANCE domain logons won't reset system policy on that machine (because FINANCE doesn't use system policies). To prevent this situation when you're implementing system policies in a multidomain environment, be thorough and implement them in every domain; this method will ensure Registries are reset properly.

Differences Between the NT and Windows 95 SPE
If you've used the Windows 95 SPE to manage your Win95 workstations, you might wonder if you can combine functionality here. Can you use this NT version of SPE to create one unified system policy file for both your NT and Win95 client workstations?

The SPE online Help file alludes to the fact that some templates included with SPE contain Win95-specific Registry settings. Unfortunately, the differences in the NT and Win95 Registries preclude creating one, all-encompassing policy file that works with both Win95 and NT systems.

However, you can use the NT 4.0 SPE to manage your NT and Win95 system policy files independently of one another. To do so, you have to create and edit the ntconfig.pol file with SPE from an NT system and create and edit the Win95 system policy file while running SPE from a Win95 system. This last point is especially important: You can successfully create a Win95 policy only with NT 4.0's SPE from Win95. Although you can create Win95 system policy files with SPE under NT, they won't work once implemented. Furthermore, when creating and editing the NT system policy, be sure to have the common.adm and winnt.adm templates loaded; when creating the Win95 policy file, use the common.adm and windows.adm templates. The common.adm policy template file contains Registry settings common to both NT and Win95 computers, whereas the windows.adm and winnt.adm files contain Win95 and NT-specific Registry settings, respectively.

Although you can use the NT 4.0 SPE utility to create and manage a Win95 system policy file when using SPE from a Win95 workstation, be aware of a few differences between NT 4.0 SPE and the Win95 version. One difference is that the NT 4.0 version of SPE is capable of using multiple .adm Registry templates simultaneously; Win95 SPE can use only one at a time. Despite this limitation, I find that the default template file Win95 SPE uses (admin.adm) includes some useful entries I did not find in the two files (common.adm and windows.adm) the NT version includes. Capabilities such as restricting the Network Control Panel Applet are conspicuously absent from the NT version. Check the settings available in both the NT version and the Win95 version before deciding which SPE version to use. You can have the best of both worlds if you use the admin.adm template to create a Win95 policy file with NT SPE. Copy the admin.adm file to the \windows\inf directory of the Win95 workstation you use to create the policy.

An Invaluable Tool
NT SPE is an invaluable tool that no NT network administrator will want to live without. It is a multipurpose application that can serve as an alternative to the somewhat foreboding NT Registry editors, as a Registry editor for remote workstations, and as a centralized control mechanism for implementing domain-wide computer and user policies.

End of Article

   Previous  1  [2]  Next  


Reader Comments
I found Sean Daily’s “Further Explorations of the NT System Policy Editor” (April 1997) in the Windows NT Magazine archives during my search for a way to use the System Policy Editor (SPE) to install and manage a custom logon banner consisting of 250 characters. I know I can enter the banner text manually into the Registry, but because of my large number of users and multiple-server environment, I need a way to automate this task.
The SPE would be ideal; however,
it can’t recognize such a large number of characters, even when I use a modified .adm file. Do you have any suggestions about how I can make this solution work?
--Larry Smith<br><br><i>

The most likely cause of your problem is the version of poledit.exe that you’re using. Versions of poledit.exe before 12/22/97 contain a little-known bug that limits the number of characters in a logon banner to 255 characters. See the Microsoft articles “Access Violation in PolEdit When Defining Allowed WindowsApps”(http://support.microsoft.com/support/kb/articles/q179/5/53.asp) and “System Policy Editor Will Not Allow More Than 255 Characters” (http://support .microsoft.com/support/kb/articles/q173/3/85.asp) for more information about this problem. Although you stated that your banner was only 250 characters, obtaining the latest version of poledit.exe from Microsoft Product Support is probably still worth your time.
Another factor to keep in mind is that although the default maximum value for this Registry entry is 255 (defined as MAXLEN 255 inside the .adm file), you can expand this maximum with a MAXLEN value that specifies a different length (such as 1024). Be sure to set the value to at least the size of your current logon banner. (You might as well set it to 1024 to accommodate potential growth.)
Your question also provides a good opportunity to remind readers about another little-known bug that relates to poledit.exe and Service Pack 3 (SP3). Early versions of SP3 didn’t properly update the poledit.exe file because of a bug in the SP3 installation script file. As a result, you may need to manually copy the updated SP3 version of poledit
.exe from the SP3 distribution directory after installing the update.
However, be aware that the SP3 version of poledit.exe doesn’t circumvent the greater-than-255-characters problem I described previously (SP3 file dates are 5/1/97). Knowing about the SP3 problem with poledit.exe is useful because most SP3 NT installations are still using the original NT 4.0 poledit.exe file.<br>
--Sean Daily</i>

Larry Smith August 06, 1999


Sean Daily’s April article, “Further Explorations of the NT System Policy Editor,” gave great detailed information on this important administration tool. Microsoft slid in new system policy features in SP2. You can now do things such as prevent the user from getting to the Task Manager or from running Explorer, with a right-click on the Start button. It’s handy for setting up a kiosk system. The new features for user policies are:<br><br>

Shell\Restrictions\Remove File menu from Explorer<br>
Shell\Restrictions\Remove common program groups from Start menu<br>
Shell\Restrictions\Disable context menus for the taskbar<br>
Shell\Restrictions\Disable Explorer’s default context menu<br>
Shell\Restrictions\Remove the “Map Network Drive” and “Disconnect Network<br>
Drive” options<br>
Shell\Restrictions\Disable link file tracking<br>
System\Disable Task Manager<br>
System\Show welcome tips at logon<br><br>

You must have the SP2 version of Explorer for these settings to take effect. The service pack updated the winnt.adm file, so you must use the new template to get to the new settings.<br>
--William Randlett

William Randlett August 12, 1999


Thanks for Sean Daily’s April article, “Further Explorations of the NT System Policy Editor.” I need clarification on one point: I have all Windows NT workstations and one Windows 95 workstation, but from your article, I’m not clear about how to create a policy for the Win95 machine. I understand using the NT 4.0 System Policy Editor (SPE) from the Win95 machine to create the policy, but what do I name that policy and do I keep it in the NETLOGON share of my Primary Domain Controller (PDC) with my NT config.pol for the NT machines? How can I get both to work?<br>
--Brent K. Ouellette<br><br>

<i>You must name your Win95 system policy file config.pol (in contrast to the NT system policy file) and put it in the NETLOGON folder (i.e., %SYSTEMROOT%\SYSTEM32REPL\IMPORT\SCRIPTS, etc.). You can use either the NT or 95 policy editor to create the file. For further information about Win95 system policy files, I highly recommend the Microsoft Windows 95 Resource Kit’s comprehensive section on the topic. <br>
--Sean Daily</i>

Brent K. Ouellette August 12, 1999


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement