This project is read-only.

Resource Application Block Group Policy

New to the Enterprise Library 3.1 is an interface to Active Directory Group Policy Management. The Resource Application Block has implemented this Manageability feature for resource managers.

With these manageability features you can define a special policy for Resource Managers and set WMI Filters. With a group policy you can prevent users from changing their local Resource Application Block configuration settings, alternatively you might have several desktop applications deployed throughout your organisation and need to change a resource store across the board.

Configuring your applications to use Group Policy requires the use of the Manageable ConfigurationSource this determines what appears in your policy by providing an ADM Template generator. Configure the Manageable ConfigurationSource first then click on Generate ADM Template from the Manageable ConfigurationSource context menu. Whatever you have configured in the Console will be turned into a template that you can use in the Group Policy Management tool. In the case of the Resource Application Block the ADM template will include all of the configured Resource Managers and associated resource provider types and their properties. See the documentation that comes with the Enterprise Library 3.1 for more details.

Generating an ADM Template

Creating a Resource Application Block Group Policy

Carry out the following steps to create a Resource Application Block Group Policy:
  • Use the Manageable ConfigurationSource to configure your application
  • Generate an ADM Template from the Configuration Console
  • Load the Group Policy Management Tool
  • Open up the domain that you wish to add the policy to
  • Add a new group policy to the Group Policy Objects branch and give your policy a name
Adding a Resource Application Block Group Policy
  • Now right click on your new policy and click on Edit...
  • From the Administrative Templates branch for either the Computer or User configuration settings, right click and select Add/Remove Templates...
Adding an ADM Template
  • Now go and find the ADM template that you created earlier and select it
Selecting an ADM Template

You end up with additional entries in the Application branch. The Resource Application Block manageability interface will add Resource entries to mirror all of the configurable properties required for the Resource Application Block

New Application Entries in Group Policy

Editing the Resource Application Block Group Policy

Now that you have added your ADM template to the Group Policy you can edit the settings. These are, of course, the same settings as you configure using the Enterprise Library Configuration Console only now you are using the Group Policy editor.

To edit those settings you perform the following steps:
  • Load the Group Policy Management Tool
  • Open up the domain that you added your policy to
  • Now right click on your policy from the Group Policy Objects branch and click on Edit...
  • The group policy editor will appear containing the additional entries added from your ADM Template. These will reside under the Administrative Templates|Application branch in either the Computer or User configuration settings branch depending on which of those branches you added the template to (it could be both).
  • As you open up the branches from your template you will find configuration settings.
Resource Manager Configurable Settings
  • Double click on any setting and a configuration editor will appear. In order to edit a setting you will need to enable it first, then you will see the current setting and will be able to change it to what you want it to be. In the following example we are editing a resource manager with an instance name of Resource Manager and it is clear from the settings that the resource manager has been configured with an Assembly Resource Provider:
Group Policy Configuration Editor

Now all computers (or users) in the domain that hosts the policy will have their Resource Application Block configuration automatically modified for any resource manager instance names that match the ones in the group policy template.

Last edited Mar 2, 2008 at 11:05 PM by ewdev, version 15

Comments

No comments yet.