Sdílet prostřednictvím


akce spustitelného souboru Configuration Manager

V Configuration Manager spustitelná akce spustí program nebo otevře soubor pomocí programu zaregistrovaného v systému Windows pro tento typ souboru.

Následující atributy a prvky jsou specifické pro akci, která spouští program:

  • Atribut ActionDescription elementu Class je nastavený na Executable.

  • Element Executable je nadřazený FilePath``, cestě k programu a k Parameters, parametry předané spustitelnému souboru.

Ukázka XML akce spustitelného souboru

<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>

Další prvky a atributy jsou zdokumentovány v ActionDescription.

Viz taky

akce Configuration Manager
Vytvoření akce Configuration Manager
Jak najít identifikátor GUID uzlu Configuration Manager