在 Configuration Manager 中,可執行檔動作會使用向 Windows 針對該檔案類型註冊的程式來執行程式或開啟檔案。
下列屬性和元素專屬於執行程式的動作:
元素
Class屬性設定ActionDescription為Executable。該
Executable元素是程式路徑的父項,Parameters也是傳遞給可執行檔的參數的父項FilePath``,。
可執行檔動作 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>
其他元素和屬性會記錄在 ActionDescription 中。
另請參閱
Configuration Manager 動作如何建立 Configuration Manager 動作如何尋找 Configuration Manager 節點 GUID