MP Elements can be enabled to be “turned on” to run on import, or disabled by default such that the user must enable them to run. As a best practice, all MP elements that are not enabled by default should be documented in the MP Guide.
For elements that are not enabled by default, if the end-user does not realize that this is intentional, problems could occur. Such problems include users not knowing that this functionality is available, or users assuming that the functionality is not working properly in their environment.
Using the Authoring Console:
1. For any MP element, open the Properties dialog. In the Options tab, check that the Enabled value is the intended value for the element.
2. During MP Guide development, be sure to note the list of elements that are havetheir Enabled value set to false.
Using XML:
<
Rule
ID
=
"
Microsoft.Windows.Server.2008.Computer.RunWMIAdap"
Enabled
=
"
false"
Target
="
Server2008!Microsoft.Windows.Server.2008.Computer"
>
<
Category
>
Maintenance
</
Category
>
<
DataSources
>
<
DataSource
ID
=
"
Scheduler"
TypeID
="
System!System.Scheduler"
>
<
Scheduler
>
<
SimpleReccuringSchedule
>
<
Interval
Unit
=
"
Days"
>1
</
Interval
>
</
SimpleReccuringSchedule
>
<
ExcludeDates
/>
</
Scheduler
>
</
DataSource
>
</
DataSources
>
<
WriteActions
>
<
WriteAction
TypeID
=
"
System!System.CommandExecuter"
ID
="
DS1"
>
<
ApplicationName
><![CDATA[
%windir%\system32\cmd.exe
]]></
ApplicationName
>
<
WorkingDirectory
/>
<
CommandLine
>
/c wmiadap.exe /F
</
CommandLine
>
<
TimeoutSeconds
>
300
</
TimeoutSeconds
>
<
RequireOutput
>
true
</
RequireOutput
>
<
Files
/>
</
WriteAction
>
</
WriteActions
>
</ Rule > …
MP Guide:
The following elements are not enabled out of box in this management pack. The user must enable these elements through overrides.
· Run WMI Adapter Rule