How to Create Form XML for a Configuration Manager Property Sheet
In Configuration Manager, to create the form XML for a Configuration Manager property sheet, you create an XML file that describes an SmsFormData
.
Every Configuration Manager console form extension has an associated form XML file that describes the assembly, the type of the form to be displayed, and—in the case of property sheets—how the property pages are organized. The property sheet XML file is referenced by the action XML when an action is selected.
Note
The name of the form XML file is significant because it is used in the action XML to identify the form XML.
The following procedure demonstrates how to create the form XML file for the control and property page you created in How to Create a Configuration Manager Property Sheet.
After completing the following procedure, you must create an action to load the property sheet. For more information, see How to Create Action XML for a Configuration Manager Property Sheet.
Note
To see the form XML used by the Configuration Manager console, see %ProgramFiles%\AdminConsole\XmlStorage\Forms. These can be useful for creating your own form XML.
To create the form XML for a property sheet
If it is open, close the Configuration Manager console.
In Notepad, create an XML file that contains the following XML:
<?xml version="1.0" encoding="utf-8"?> <SmsFormData xmlns="http://schemas.microsoft.com/SystemsManagementServer/2005/03/ConsoleFramework" FormatVersion="1"> <Form Id="PROPERTYSHEETGUID" CustomData="SomeData" FormType="PropertySheet" ForceRefresh="true"> <Assembly Name="ConfigMgrControl.dll" Namespace="Microsoft.ConfigurationManagement.AdminConsole.ConfigMgrPropertySheet" /> <Pages> <Page VendorId="YOURCOMPANY" Id="VENDORGUID" Type="ConfigMgrControlPage" /> </Pages> </Form> </SmsFormData>
In Visual Studio 2010, on the Tools menu, click Create GUID.
In the Create GUID dialog box, in the GUID format panel, select Registry Format.
Click New GUID, and then click Copy.
In the XML above, paste the GUID into PROPERTYSHEETGUID. A single opening
{
and a single closing}
must wrap the GUID. For example,{ab60b75e-b64a-44c0-ad63-d96d289f39ca}
.Repeat steps 3 through 5, and paste the GUID into VENDORGUID.
In the preceding XML, change YOURCOMPANY to your company name.
Save the XML file in the folder %ProgramFiles%\AdminConsole\XmlStorage\Extensions\Forms with the file name ConfigMgrPropertySheet.xml. Be sure to save the file as type
All Files
. If the Extensions folder and Forms folder do not yet exist, create them.Start the Configuration Manager console, and select the action you defined in How to Create Action XML for a Configuration Manager Property Sheet.
The property sheet you created in How to Create a Configuration Manager Property Sheet appears.
See Also
About Configuration Manager Forms
How to Create Action XML for a Configuration Manager Property Sheet
How to Create a Configuration Manager Property Sheet