{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/zh-tw/powershell/","_op_gitContributorInformation":{"author":{"display_name":"Banreet Kaur","id":"92906285","name":"Banreet","profile_url":"https://github.com/Banreet"},"contributors":[{"display_name":"Aaron Czechowski","id":"26784733","name":"aczechowski","profile_url":"https://github.com/aczechowski"}],"update_at":"2026/10/8","updated_at_date_time":"2026-10-08T00:07:59.7076609Z"},"_path":"module/configurationmanager/set-cmtasksequencedeploymenttype.json","_rel":"../../","_tocRel":"../sccm-ps/toc.json","apiPlatform":"powershell","author":"Banreet","breadcrumb_path":"/powershell/sccm/bread/toc.json","canonical_url":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/set-cmtasksequencedeploymenttype?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Set-CMTaskSequenceDeploymentType.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","document_id":"a92f1f2b-8013-4adb-0e1b-0080dc97195c","document_version_independent_id":"75a2469a-64db-9a36-3f96-3e3ed1bd6cf5","external help file":"AdminUI.PS.dll-Help.xml","feedback_product_url":"https://feedbackportal.microsoft.com/feedback/forum/4669adfc-ee1b-ec11-b6e7-0022481f8472","feedback_system":"Standard","git_commit_id":"2d87396082e143b55b30d215258afc8fecd75194","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/2d87396082e143b55b30d215258afc8fecd75194/sccm-ps/ConfigurationManager/Set-CMTaskSequenceDeploymentType.md","github_contributors":["aczechowski"],"locale":"zh-tw","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"08/02/2021","ms.service":"configuration-manager","ms.subservice":"other","ms.topic":"reference","online version":"","open_to_public_contributors":true,"original_content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/live/sccm-ps/ConfigurationManager/Set-CMTaskSequenceDeploymentType.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Set-CMTaskSequenceDeploymentType.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-10-08 12:07 AM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmtasksequencedeploymenttype","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMTaskSequenceDeploymentType","schemaType":"PowershellCmdlet","summary":"<p>在應用程式上設定工作順序部署類型。</p>\n","uid":"ConfigurationManager.Set-CMTaskSequenceDeploymentType"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Set-CMTaskSequenceDeploymentType":{"href":"set-cmtasksequencedeploymenttype","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMTaskSequenceDeploymentType","schemaType":"PowershellCmdlet","summary":"<p>在應用程式上設定工作順序部署類型。</p>\n","uid":"ConfigurationManager.Set-CMTaskSequenceDeploymentType"}},"description":"<p>適用於 2006 版和更新版本。 使用此 Cmdlet 在應用程式上設定工作順序部署類型。 如需詳細資訊，請 <a href=\"/mem/configmgr/apps/get-started/creating-windows-applications#bkmk_tsdt\">參閱工作順序部署類型</a>。</p>\n<p>此 Cmdlet 的語法與 MSI 部署類型 Cmdlet <a href=\"set-cmmsideploymenttype\">Set-CMMsiDeploymentType</a> 類似。 主要差異如下：</p>\n<ul>\n<li><p>\n              <code>-InstallTaskSequenceId &lt;string&gt;</code> (必要) ：安裝應用程式的工作順序標識碼</p>\n</li>\n<li><p>\n              <code>-UninstallTaskSequenceId &lt;string&gt;</code> (選擇性) ：要卸載應用程式的工作順序標識碼</p>\n</li>\n</ul>\n<p>這兩個參數與部署類型工作順序選項有關。 它們會 <code>-InstallCommand</code> 取代 MSI Cmdlet 上的 和 <code>-UninstallCommand</code> 參數。</p>\n","examples":[{"code":"Set-CMMSiDeploymentType -ApplicationName \"CBI\" -DeploymentTypeName \"Complex install\" -NewName \"Advanced install\" -AddLanguage \"en-US\",\"zh-CN\" -Comment \"New Deployment Type-updated\" -EstimatedRuntimeMins 14 -LogonRequirementType OnlyWhenNoUserLoggedOn","description":"<p>如需需求規則和偵測方法的其他範例，請參閱 <a href=\"set-cmscriptdeploymenttype\">Set-CMScriptDeploymentType</a> 和 <a href=\"add-cmmsideploymenttype\">Add-CMMsiDeploymentType</a>。</p>\n","summary":"<p>此命令會將部署類型的名稱從 <strong>[複雜安裝</strong> ] 變更為 [ <strong>進階安裝]</strong>。 它會將 <strong>英文 (美國)  (</strong>) <code>en-US</code> 和 <strong>簡體中文 (簡體) </strong> () <code>zh-CN</code> 新增為支持的語言。 它指定安裝大約需要 14 分鐘才能完成，而且只有在沒有使用者登入 Windows 時才會執行。</p>\n","title":"範例 1：修改工作順序部署類型"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"add-cmtasksequencedeploymenttype","text":"Add-CMTaskSequenceDeploymentType"},{"href":"get-cmdeploymenttype","text":"Get-CMDeploymentType"},{"href":"remove-cmdeploymenttype","text":"Remove-CMDeploymentType"},{"href":"get-cmapplication","text":"Get-CMApplication"},{"href":"/mem/configmgr/apps/get-started/creating-windows-applications#bkmk_tsdt","text":"工作順序部署類型"}],"module":"ConfigurationManager","name":"Set-CMTaskSequenceDeploymentType","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"aliases":"AddDetectionClauses","defaultValue":"None","description":"<p>為此部署類型指定偵測方法子句的陣列。 若要建立偵測子句，請使用下列其中一個 Cmdlet：</p>\n<ul>\n<li>\n              <a href=\"new-cmdetectionclausedirectory\">New-CMDetectionClauseDirectory</a></li>\n<li>\n              <a href=\"new-cmdetectionclausefile\">New-CMDetectionClauseFile</a></li>\n<li>\n              <a href=\"new-cmdetectionclauseregistrykey\">New-CMDetectionClauseRegistryKey</a></li>\n<li>\n              <a href=\"new-cmdetectionclauseregistrykeyvalue\">New-CMDetectionClauseRegistryKeyValue</a></li>\n<li>\n              <a href=\"new-cmdetectionclausewindowsinstaller\">New-CMDetectionClauseWindowsInstaller</a></li>\n</ul>\n<p>將這些 Cmdlet 的輸出儲存到變數中。 然後將這些變數指定為此參數的陣列。 例如，<code>-AddDetectionClause $clauseFile1,$clauseFile2,$clauseFile3</code>。</p>\n<p>您也可以使用 <a href=\"get-cmdeploymenttypedetectionclause\">Get-CMDeploymentTypeDetectionClause</a> 從另一個應用程式取得現有的偵測子句。</p>\n","name":"AddDetectionClause","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">DetectionClause</span><span>[</span><span>]</span></p>\n"},{"aliases":"AddLanguages, Languages, Language","defaultValue":"None","description":"<p>指定部署類型支援的語言標記陣列。 例如，若要新增 <strong>俄 (俄羅斯) </strong>，請指定 標籤 <code>ru-RU</code>。</p>\n<p>如需詳細資訊和語言標記清單，請參閱 <a href=\"/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c\">Windows 語言代碼識別子 (LCID) 參考。</a></p>\n","name":"AddLanguage","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">String</span><span>[</span><span>]</span></p>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定部署類型的需求物件陣列。 若要建立需求規則物件，請使用下列其中一個 Cmdlet：</p>\n<ul>\n<li>\n              <a href=\"new-cmrequirementruleactivedirectorysitevalue\">New-CMRequirementRuleActiveDirectorySiteValue</a></li>\n<li>\n              <a href=\"new-cmrequirementrulebooleanvalue\">New-CMRequirementRuleBooleanValue</a></li>\n<li>\n              <a href=\"new-cmrequirementrulecmsitevalue\">New-CMRequirementRuleCMSiteValue</a></li>\n<li>\n              <a href=\"new-cmrequirementrulecommonvalue\">New-CMRequirementRuleCommonValue</a></li>\n<li>\n              <a href=\"new-cmrequirementruledeviceownershipvalue\">New-CMRequirementRuleDeviceOwnershipValue</a></li>\n<li>\n              <a href=\"new-cmrequirementruleexistential\">New-CMRequirementRuleExistential</a></li>\n<li>\n              <a href=\"new-cmrequirementruleexpression\">New-CMRequirementRuleExpression</a></li>\n<li>\n              <a href=\"new-cmrequirementrulefileattributevalue\">New-CMRequirementRuleFileAttributeValue</a></li>\n<li>\n              <a href=\"new-cmrequirementrulefilepermissionvalue\">New-CMRequirementRuleFilePermissionValue</a></li>\n<li>\n              <a href=\"new-cmrequirementrulefreediskspacevalue\">New-CMRequirementRuleFreeDiskSpaceValue</a></li>\n<li>\n              <a href=\"new-cmrequirementruleinputtypevalue\">New-CMRequirementRuleInputTypeValue</a></li>\n<li>\n              <a href=\"new-cmrequirementruleoperatingsystemlanguagevalue\">New-CMRequirementRuleOperatingSystemLanguageValue</a></li>\n<li>\n              <a href=\"new-cmrequirementruleoperatingsystemvalue\">New-CMRequirementRuleOperatingSystemValue</a></li>\n<li>\n              <a href=\"new-cmrequirementruleouvalue\">New-CMRequirementRuleOUValue</a></li>\n<li>\n              <a href=\"new-cmrequirementruleregistrykeypermissionvalue\">New-CMRequirementRuleRegistryKeyPermissionValue</a></li>\n<li>\n              <a href=\"new-cmrequirementrulescreenresolutionvalue\">New-CMRequirementRuleScreenResolutionValue</a></li>\n</ul>\n<p>從 2111 版開始，您可以使用 <a href=\"get-cmdeploymenttyperequirement\">Get-CMDeploymentTypeRequirement</a> Cmdlet 從另一個部署類型複製規則。</p>\n","name":"AddRequirement","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">Rule</span><span>[</span><span>]</span></p>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定此部署類型的應用程式物件。 若要取得此物件，請使用 <a href=\"get-cmapplication\">Get-CMApplication</a> Cmdlet。</p>\n","isRequired":true,"name":"Application","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"CI_ID, CIId","defaultValue":"None","description":"<p>指定此部署類型的應用程式識別碼。</p>\n","isRequired":true,"name":"ApplicationId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Int32</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定此部署類型的應用程式名稱。</p>\n","isRequired":true,"name":"ApplicationName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"AdministratorComment","defaultValue":"None","description":"<p>指定部署類型的選擇性描述。</p>\n","name":"Comment","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"cf","defaultValue":"None","description":"<p>執行 Cmdlet 之前提示您確認。</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定要設定的部署類型名稱。</p>\n","isRequired":true,"name":"DeploymentTypeName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"DetectionClauseConnectors","defaultValue":"None","description":"<p>當您使用 <strong>GroupDetectionClauses</strong> 參數將偵測子句分組時，請使用此參數來指定連接器。</p>\n<p>下列範例會定義 <strong>OR</strong> 連接器： <code>@{&quot;LogicalName&quot;=$clauseFile3.Setting.LogicalName;&quot;Connector&quot;=&quot;OR&quot;}</code></p>\n","name":"DetectionClauseConnector","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">Hashtable</span><span>[</span><span>]</span></p>\n"},{"aliases":"","defaultValue":"None","description":"<p>此參數會將通配符視為常值字元值。 您無法將其與 <strong>ForceWildcardHandling</strong> 結合。</p>\n","name":"DisableWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"EstimatedInstallationTimeMinutes, EstimatedInstallationTimeMins, EstimatedRunTimeMinutes","defaultValue":"None","description":"<p>為應用程式指定此部署類型的預估安裝時間，以分鐘為單位。 軟體中心會在應用程式安裝之前，向用戶顯示此估計值。</p>\n","name":"EstimatedRuntimeMins","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Int32</span>\n"},{"aliases":"ForceForUnknownPublisher","defaultValue":"None","description":"<p>強制命令在不要求使用者確認的情況下執行。</p>\n","name":"Force","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"Force32BitDetectionScript","defaultValue":"None","description":"<p>如果您使用自定義腳本來偵測此部署類型是否存在，請將此參數 <code>$true</code> 設定為 ，以在64位用戶端上以32位進程執行腳本。</p>\n","name":"ForceScriptDetection32Bit","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>此參數會處理通配符，並可能導致非預期的行為 (不建議) 。 您無法將其與 <strong>DisableWildcardHandling</strong> 結合。</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"GroupDetectionClausesByLogicalName","defaultValue":"None","description":"<p>當您設定規則來偵測此部署類型是否存在時，請使用此參數來群組子句。 若要建立偵測子句，請使用下列其中一個 Cmdlet：</p>\n<ul>\n<li>\n              <a href=\"new-cmdetectionclausedirectory\">New-CMDetectionClauseDirectory</a></li>\n<li>\n              <a href=\"new-cmdetectionclausefile\">New-CMDetectionClauseFile</a></li>\n<li>\n              <a href=\"new-cmdetectionclauseregistrykey\">New-CMDetectionClauseRegistryKey</a></li>\n<li>\n              <a href=\"new-cmdetectionclauseregistrykeyvalue\">New-CMDetectionClauseRegistryKeyValue</a></li>\n<li>\n              <a href=\"new-cmdetectionclausewindowsinstaller\">New-CMDetectionClauseWindowsInstaller</a></li>\n</ul>\n<p>將這些 Cmdlet 的輸出儲存到變數中。 然後使用下列格式來分組子句： <code>$clause2.Setting.LogicalName, $clause3.Setting.LogicalName</code>。</p>\n<div class=\"TIP\">\n<p>提示</p>\n<p>在 Configuration Manager 控制台中，當您選取 <strong>[群組</strong> ] 動作時，子句會在群組子句前後顯示括弧。</p>\n</div>\n","name":"GroupDetectionClauses","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">String</span><span>[</span><span>]</span></p>\n"},{"aliases":"DeploymentType","defaultValue":"None","description":"<p>指定要設定的部署類型物件。 若要取得這個物件，請使用 <a href=\"get-cmdeploymenttype\">Get-CMDeploymentType</a> Cmdlet。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"Named","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定此部署類型的安裝行為：</p>\n<ul>\n<li>\n              <code>InstallForUser</code>：用戶端只會為您部署應用程式的使用者安裝應用程式。</li>\n<li>\n              <code>InstallForSystem</code>：用戶端只會安裝應用程式一次。 它可供所有使用者使用。</li>\n<li>\n              <code>InstallForSystemIfResourceIsDeviceOtherwiseInstallForUser</code>：如果您將應用程式部署到裝置，用戶端會為所有使用者安裝它。 如果您將應用程式部署至使用者，用戶端只會為該使用者安裝它。</li>\n</ul>\n","name":"InstallationBehaviorType","parameterValueGroup":"InstallForUser, InstallForSystem, InstallForSystemIfResourceIsDeviceOtherwiseInstallForUser","position":"Named","type":"<span class=\"no-loc xref\">InstallationBehaviorType</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>要安裝應用程式之工作順序的標識碼。</p>\n","isRequired":true,"name":"InstallTaskSequenceId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定已登入使用者的需求：</p>\n<ul>\n<li><p>\n              <code>OnlyWhenNoUserLoggedOn</code>：只有當沒有任何使用者登入 Windows 時。</p>\n</li>\n<li><p>\n              <code>OnlyWhenUserLoggedOn</code>：只有當使用者登入時。 此選項為預設值。</p>\n</li>\n<li><p>\n              <code>WhetherOrNotUserLoggedOn</code>：使用者是否已登入。</p>\n<div class=\"NOTE\">\n<p>注意事項</p>\n<p>值 <code>WhereOrNotUserLoggedOn</code> 已被取代。 它會由 <code>WhetherOrNotUserLoggedOn</code>取代。</p>\n</div>\n</li>\n</ul>\n<p>如果您將 <strong>InstallationBehaviorType</strong> 設定為 <code>InstallForUser</code>，則無法設定此參數。</p>\n","name":"LogonRequirementType","parameterValueGroup":"OnlyWhenUserLoggedOn, WhereOrNotUserLoggedOn, WhetherOrNotUserLoggedOn, OnlyWhenNoUserLoggedOn","position":"Named","type":"<span class=\"no-loc xref\">LogonRequirementType</span>\n"},{"aliases":"MaximumAllowedRunTimeMinutes, MaximumAllowedRunTimeMins, MaximumRunTimeMinutes","defaultValue":"None","description":"<p>指定此應用程式部署程式允許的運行時間上限。 以分鐘為單位設定整數值。</p>\n","name":"MaximumRuntimeMins","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Int32</span>\n"},{"aliases":"NewDeploymentTypeName","defaultValue":"None","description":"<p>指定要重新命名此部署類型的新名稱。</p>\n","name":"NewName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>新增此參數以傳回 物件，代表您正在使用的專案。 根據預設，此 Cmdlet 可能不會產生任何輸出。</p>\n","name":"PassThru","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>如果應用程式使用 Windows Installer 技術，請指定要設定為偵測方法的 MSI 產品代碼。 當您使用此參數時，它會覆寫任何現有的偵測方法。</p>\n","name":"ProductCode","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定安裝後行為：</p>\n<ul>\n<li><p>\n              <code>BasedOnExitCode</code>：根據傳回碼判斷行為。</p>\n</li>\n<li><p>\n              <code>NoAction</code>：沒有特定動作。</p>\n</li>\n<li><p>\n              <code>ProgramReboot</code>：軟體安裝程式可能會強制裝置重新啟動。</p>\n</li>\n<li><p>\n              <code>ForceReboot</code>：Configuration Manager 用戶端會強制裝置重新啟動。</p>\n</li>\n</ul>\n<p>如需這些行為的詳細資訊，請參閱 <a href=\"/mem/configmgr/apps/deploy-use/create-applications#deployment-type-properties-user-experience-options\">在 Configuration Manager 中建立應用程式</a>。</p>\n","name":"RebootBehavior","parameterValueGroup":"BasedOnExitCode, NoAction, ForceReboot, ProgramReboot","position":"Named","type":"<span class=\"no-loc xref\">PostExecutionBehavior</span>\n"},{"aliases":"RemoveDetectionClauses","defaultValue":"None","description":"<p>指定要移除的偵測方法子句數位。</p>\n","name":"RemoveDetectionClause","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">String</span><span>[</span><span>]</span></p>\n"},{"aliases":"RemoveLanguages","defaultValue":"None","description":"<p>指定要從此部署類型移除的支持語言陣列。</p>\n","name":"RemoveLanguage","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">String</span><span>[</span><span>]</span></p>\n"},{"aliases":"RemoveRequirements","defaultValue":"None","description":"<p>指定要從此部署類型移除的需求規則陣列。</p>\n","name":"RemoveRequirement","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">Rule</span><span>[</span><span>]</span></p>\n"},{"aliases":"RequiresUserInteraction","defaultValue":"None","description":"<p>將此參數設定為 <code>$true</code> ，可讓用戶檢視部署類型安裝並與其互動。</p>\n","name":"RequireUserInteraction","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定要用來偵測此部署類型的腳本檔案。 也請使用 <strong>ScriptLanguage</strong> 參數。</p>\n","name":"ScriptFile","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"ScriptType","defaultValue":"None","description":"<p>如果您使用 <strong>ScriptFile</strong> 或 <strong>ScriptText</strong> 參數，請使用此參數來指定腳本語言。</p>\n","name":"ScriptLanguage","parameterValueGroup":"PowerShell, VBScript, JavaScript","position":"Named","type":"<span class=\"no-loc xref\">ScriptLanguage</span>\n"},{"aliases":"ScriptContent, Script","defaultValue":"None","description":"<p>指定要偵測此部署類型的腳本文字。 也請使用 <strong>ScriptLanguage</strong> 參數。</p>\n<p>如需詳細資訊，請 <a href=\"/mem/configmgr/apps/deploy-use/create-applications#about-custom-script-detection-methods\">參閱關於自定義腳本偵測方法</a>。</p>\n","name":"ScriptText","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>當用戶端使用鄰近界限群組或預設月臺界限群組中的發佈點時，請指定部署選項：</p>\n<ul>\n<li>\n              <code>DoNothing</code>：不要下載內容</li>\n<li>\n              <code>Download</code>：從發佈點下載內容並在本機執行</li>\n</ul>\n","name":"SlowNetworkDeploymentMode","parameterValueGroup":"DoNothing, Download","position":"Named","type":"<span class=\"no-loc xref\">ContentHandlingMode</span>\n"},{"aliases":"ContentLocation, UninstallId","defaultValue":"None","description":"<p>要卸載應用程式之工作順序的標識碼。</p>\n","name":"UninstallTaskSequenceId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"InstallationProgramVisibility","defaultValue":"None","description":"<p>指定安裝程式可見度：</p>\n<ul>\n<li>\n              <code>Normal</code>：部署類型會根據系統和程序預設值，以一般模式執行。 此模式為預設值。</li>\n<li>\n              <code>Minimized</code>：部署類型會在用戶端裝置上最小化執行。 使用者可能會在通知區域或任務欄中看到安裝活動。</li>\n<li>\n              <code>Maximized</code>：部署類型會在用戶端裝置上最大化執行。 使用者會看到所有安裝活動。</li>\n<li>\n              <code>Hidden</code>：部署類型會在用戶端裝置上隱藏執行。 使用者看不到任何安裝活動。</li>\n</ul>\n","name":"UserInteractionMode","parameterValueGroup":"Normal, Minimized, Maximized, Hidden","position":"Named","type":"<span class=\"no-loc xref\">UserInteractionMode</span>\n"},{"aliases":"wi","defaultValue":"None","description":"<p>顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>在應用程式上設定工作順序部署類型。</p>\n","syntaxes":["Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -ApplicationName <String>\n -DeploymentTypeName <String> [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>]\n [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>] [-Force]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -Application <IResultObject>\n -DeploymentTypeName <String> [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>]\n [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>] [-Force]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -ApplicationId <Int32>\n -DeploymentTypeName <String> [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>]\n [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>] [-Force]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]","Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -InputObject <IResultObject>\n [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>] [-RemoveRequirement <Rule[]>]\n [-AddLanguage <String[]>] [-Comment <String>] [-Force] [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Set-CMTaskSequenceDeploymentType","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"zh-tw","loc_version":"2024-08-21T21:18:36.7205003Z","loc_source_id":"Github-72476255#live","loc_file_id":"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Set-CMTaskSequenceDeploymentType.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmtasksequencedeploymenttype","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMTaskSequenceDeploymentType","schemaType":"PowershellCmdlet","summary":"<p>在應用程式上設定工作順序部署類型。</p>\n","uid":"ConfigurationManager.Set-CMTaskSequenceDeploymentType"}],"canonical_url":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/set-cmtasksequencedeploymenttype?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/zh-tw/powershell/module/configurationmanager/set-cmtasksequencedeploymenttype?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>適用於 2006 版和更新版本。 使用此 Cmdlet 在應用程式上設定工作順序部署類型。 如需詳細資訊，請 <a href=&quot;/mem/configmgr/apps/get-started/creating-windows-applications#bkmk_tsdt&quot;>參閱工作順序部署類型</a>。</p>\n<p>此 Cmdlet 的語法與 MSI 部署類型 Cmdlet <a href=&quot;set-cmmsideploymenttype&quot;>Set-CMMsiDeploymentType</a> 類似。 主要差異如下：</p>\n<ul>\n<li><p>\n              <code>-InstallTaskSequenceId &amp;lt;string&amp;gt;</code> (必要) ：安裝應用程式的工作順序標識碼</p>\n</li>\n<li><p>\n              <code>-UninstallTaskSequenceId &amp;lt;string&amp;gt;</code> (選擇性) ：要卸載應用程式的工作順序標識碼</p>\n</li>\n</ul>\n<p>這兩個參數與部署類型工作順序選項有關。 它們會 <code>-InstallCommand</code> 取代 MSI Cmdlet 上的 和 <code>-UninstallCommand</code> 參數。</p>\n\" />\r\n<meta name=\"hideEdit\" content=\"true\" />\r\n<meta name=\"loc_file_id\" content=\"Github-72476255.live.MSDN.sccm-powershell.sccm-ps/ConfigurationManager/Set-CMTaskSequenceDeploymentType.md\" />\r\n<meta name=\"loc_source_id\" content=\"Github-72476255#live\" />\r\n<meta name=\"loc_version\" content=\"2024-08-21T21:18:36.7205003Z\" />\r\n<meta name=\"module\" content=\"ConfigurationManager\" />\r\n<meta name=\"ms.contentlocale\" content=\"zh-tw\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"Set-CMTaskSequenceDeploymentType\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>在應用程式上設定工作順序部署類型。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -ApplicationName <String>\n -DeploymentTypeName <String> [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>]\n [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>] [-Force]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -Application <IResultObject>\n -DeploymentTypeName <String> [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>]\n [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>] [-Force]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -ApplicationId <Int32>\n -DeploymentTypeName <String> [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>]\n [-RemoveRequirement <Rule[]>] [-AddLanguage <String[]>] [-Comment <String>] [-Force]\n [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMTaskSequenceDeploymentType [-AddDetectionClause <DetectionClause[]>]\n [-DetectionClauseConnector <Hashtable[]>] [-EstimatedRuntimeMins <Int32>]\n [-ForceScriptDetection32Bit <Boolean>] [-GroupDetectionClauses <String[]>]\n [-InstallationBehaviorType <InstallationBehaviorType>] -InstallTaskSequenceId <String>\n [-LogonRequirementType <LogonRequirementType>] [-MaximumRuntimeMins <Int32>] [-ProductCode <String>]\n [-RebootBehavior <PostExecutionBehavior>] [-RemoveDetectionClause <String[]>]\n [-RequireUserInteraction <Boolean>] [-ScriptFile <String>] [-ScriptLanguage <ScriptLanguage>]\n [-ScriptText <String>] [-SlowNetworkDeploymentMode <ContentHandlingMode>] [-UninstallTaskSequenceId <String>]\n [-UserInteractionMode <UserInteractionMode>] [-AddRequirement <Rule[]>] -InputObject <IResultObject>\n [-NewName <String>] [-PassThru] [-RemoveLanguage <String[]>] [-RemoveRequirement <Rule[]>]\n [-AddLanguage <String[]>] [-Comment <String>] [-Force] [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Set-CMTaskSequenceDeploymentType\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}