Configuration Manager Ausführbare Aktion

In Configuration Manager führt die ausführbare Aktion ein Programm aus oder öffnet eine Datei mit dem Programm, das bei Windows für diesen Dateityp registriert ist.

Die folgenden Attribute und Elemente sind spezifisch für eine Aktion, die ein Programm ausführt:

  • Das ActionDescription Element-Attribut Class ist auf Executablefestgelegt.

  • Das Executable -Element ist das übergeordnete Element zum FilePath``, Pfad zum Programm, und zu Parameters, die Parameter, die an die ausführbare Datei übergeben werden.

Beispiel für ausführbare Aktions-XML

<ActionDescription Class="Executable" DisplayName="Test Action (execute)" MnemonicDisplayName="A test item" Description="A test item Description">
  <ShowOn>
    <string>DefaultHomeTab</string>
    <string>ContextMenu</string>
  </ShowOn>
  <!--<ResourceAssembly>
    <Assembly>Microsoft.ConfigurationManagement.dll</Assembly>
    <Type>Microsoft.ConfigurationManagement.AdminConsole.Properties.Resources.resources</Type>
  </ResourceAssembly>-->
  <!--<ImagesDescription>
    <ExternalImage>
      <Assembly>AdminUI.Package.dll</Assembly>
      <Type>Microsoft.ConfigurationManagement.AdminConsole.Package.SmsPackageUtils</Type>
      <Method>ShowPackageLockedIcon</Method>
    </ExternalImage>
    <ResourceAssembly>
      <Assembly>AdminUI.UIResources.dll</Assembly>
      <Type>Microsoft.ConfigurationManagement.AdminConsole.UIResources.Properties.Resources.resources</Type>
    </ResourceAssembly>
    <ImageResourceName>New</ImageResourceName>
  </ImagesDescription>-->
  <!--<ImagesDescription AliasProperty="OwnedByThisSite">
    <ResourceAssembly>
      <Assembly>AdminUI.UIResources.dll</Assembly>
      <Type>Microsoft.ConfigurationManagement.AdminConsole.UIResources.Properties.Resources.resources</Type>
    </ResourceAssembly>
    <AliasResourceAssembly>
      <Assembly>AdminUI.UIResources.dll</Assembly>
      <Type>Microsoft.ConfigurationManagement.AdminConsole.UIResources.SMS_Collection-OwnedByThisSite.resources</Type>
    </AliasResourceAssembly>
    <ImageResourceName>CollectionsIcon</ImageResourceName>
  </ImagesDescription>-->
  <!--<ActionStateAssembly>
    <Assembly>AdminUI.Report.dll</Assembly>
    <Type>Microsoft.ConfigurationManagement.AdminConsole.Report.ReportsUtilityClass</Type>
    <Method>EnableReportMenu</Method>
    -->
  <!--Method signature: public static bool EnableMenu(object sender, ScopeNode scopeNode, ActionDescription action, ResultObjectBase resultObject)-->
  <!--
  </ActionStateAssembly>-->
  <!--<InstancePermissions>
    <SecurityFlagsDetailDescription BitName="Delete" BitValue="4" DependsOn="1" />
  </InstancePermissions>-->
  <!--<MatchPattern>[^1]</MatchPattern>
  <MatchValueToTest>##SUB:Order##</MatchValueToTest>-->
  <Executable>
    <FilePath>https://go.microsoft.com/fwlink/?LinkId=67307</FilePath>
  </Executable>
</ActionDescription>

Andere Elemente und Attribute sind in ActionDescription dokumentiert.

Siehe auch

Configuration Manager Aktionen
Erstellen einer Configuration Manager Aktion
Suchen einer Configuration Manager Knoten-GUID