Creating and editing aliases
You can create aliases interactively using a tool such as CIM Studio (from the WMI SDK). You can also write aliases as MOF or XML files. The MOF or XML files can then be used to register the alias. Aliases are registered with WMI by compiling the MOF form of the alias. XML alias files can be translated to MOF using a style sheet (using the WMICliMofFormat.xsl file). XML alias files are registered at the command line. The command line defines an XSL parser to transform the alias file into WMI format and import the aliases into a WMI schema.
When browsing the role namespaces using WMI browsing tools (such as CIM Studio), only the MSFT_CliAlias and MSFT_CliTranslateTable classes have instances. Their properties might includes objects of the other classes, but the other classes will not have instances of their own. (CliSeeAlso might also be an exception to this note.) For this reason, when creating aliases, you primarily create instances in the MSFT_CliAlias class. You create instances of the other classes as properties of the MSFT_CliAlias class or as properties of its properties.
Localization is supported through the use of localized text arrays defined in the schema. Localization of aliases descriptions is done through the MFL file (more details on this will be provided in the next version of this help; the WMI SDK might also provide details).
Any WMI namespace can serve as a role. However, without additional steps, the role will not have WMIC's interactive help or the base classes required for aliases. The easiest way to make those available is to copy WMIC's Cli.mof file and change the namespace reference to the namespace that is to be used as a role. The new file can then be compiled with MOFCOMP.exe. Aliases can then be added as described above.
Additional topics to be covered in the next version of this help: