{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/ja-jp/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/08/03","updated_at_date_time":"2026-08-03T08:51:33.1342136Z"},"_path":"module/configurationmanager/set-cmdeploymenttypeinstallbehavior.json","_rel":"../../","_tocRel":"../sccm-ps/toc.json","apiPlatform":"powershell","author":"Banreet","breadcrumb_path":"/powershell/sccm/bread/toc.json","canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/set-cmdeploymenttypeinstallbehavior?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Set-CMDeploymentTypeInstallBehavior.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","document_id":"4648e6b6-e3a8-28c9-25c4-b234417a7629","document_version_independent_id":"454518e0-01d0-bcf9-1d3e-76a7d8f4ae15","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":"48cf632fb4b9ad92060012681a500478254de750","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/48cf632fb4b9ad92060012681a500478254de750/sccm-ps/ConfigurationManager/Set-CMDeploymentTypeInstallBehavior.md","github_contributors":["aczechowski"],"locale":"ja-jp","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"07/28/2021","ms.service":"microsoft-endpoint-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-CMDeploymentTypeInstallBehavior.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Set-CMDeploymentTypeInstallBehavior.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-08-03 08:51 AM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmdeploymenttypeinstallbehavior","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMDeploymentTypeInstallBehavior","schemaType":"PowershellCmdlet","summary":"<p>アプリのインストールを成功させるために閉じる必要がある実行可能ファイルを変更します。</p>\n","uid":"ConfigurationManager.Set-CMDeploymentTypeInstallBehavior"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Set-CMDeploymentTypeInstallBehavior":{"href":"set-cmdeploymenttypeinstallbehavior","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMDeploymentTypeInstallBehavior","schemaType":"PowershellCmdlet","summary":"<p>アプリのインストールを成功させるために閉じる必要がある実行可能ファイルを変更します。</p>\n","uid":"ConfigurationManager.Set-CMDeploymentTypeInstallBehavior"}},"description":"<p>バージョン 2107 以降では、このコマンドレットを使用して、アプリのインストールを成功させるために閉じる必要がある実行可能ファイルを変更します。 インストール動作機能の一般的な情報については、「 <a href=\"/mem/configmgr/apps/deploy-use/check-for-running-executable-files\">実行可能ファイルの実行を確認する</a>」を参照してください。</p>\n<p>PowerShell を使用してアプリケーションをデプロイする場合は、<a href=\"new-cmapplicationdeployment\">New-CMApplicationDeployment または Set-CMApplicationDeployment</a> で <strong>AutoCloseExecutable</strong> パラメーター<a href=\"set-cmapplicationdeployment\">を</a>使用します。 このパラメーターを使用すると、インストール動作のアプリケーションデプロイ設定が有効になります。</p>\n<div class=\"NOTE\">\n<p>注:</p>\n<p>\n              <code>PS XYZ:\\&gt;</code>など、Configuration Manager サイト ドライブから Configuration Manager コマンドレットを実行します。 詳細については、「作業の <a href=\"/powershell/sccm/overview\">開始</a>」を参照してください。</p>\n</div>\n","examples":[{"code":"$appName = \"CenterApp\"\n$dtName = \"InterDept - Windows Installer (.msi file)\"\n$msi_dt = Get-CMDeploymentType -ApplicationName $appName -DeploymentTypeName $dtName\nSet-CMDeploymentTypeInstallBehavior -InputObject $msi_dt -ExeFileName \"notepad.exe\" -NewExeFileName \"calc.exe\" -DisplayName \"Calculator\"","description":"","summary":"<p>次の使用例は、 <strong>CenterApp</strong> アプリケーションでチェックされている実行可能ファイルを <strong>notepad.exe</strong> から <strong>calc.exe</strong>に変更します。</p>\n","title":"例 1: 実行可能ファイルのインストール動作を変更する"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"add-cmdeploymenttypeinstallbehavior","text":"Add-CMDeploymentTypeInstallBehavior"},{"href":"get-cmdeploymenttypeinstallbehavior","text":"Get-CMDeploymentTypeInstallBehavior"},{"href":"remove-cmdeploymenttypeinstallbehavior","text":"Remove-CMDeploymentTypeInstallBehavior"},{"href":"get-cmdeploymenttype","text":"Get-CMDeploymentType"},{"href":"set-cmapplicationdeployment","text":"Set-CMApplicationDeployment"}],"module":"ConfigurationManager","name":"Set-CMDeploymentTypeInstallBehavior","notes":"<p>この戻りオブジェクトとそのプロパティの詳細については、「 <a href=\"/mem/configmgr/develop/reference/apps/sms_application-server-wmi-class\">サーバー WMI クラスSMS_Application</a>」を参照してください。</p>\n","outputs":[{"description":"","name":"<span class=\"no-loc xref\">IResultObject</span>\n"}],"parameters":[{"aliases":"cf","defaultValue":"None","description":"<p>コマンドレットを実行する前に確認メッセージを表示します。</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このパラメーターは、ワイルドカード文字をリテラル文字の値として扱います。 \n              <strong>ForceWildcardHandling</strong> と組み合わせることはできません。</p>\n","name":"DisableWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>指定した実行可能ファイルを識別するのに役立つフレンドリ名を指定します。</p>\n","name":"DisplayName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>ターゲット実行可能ファイルの名前を指定します。 この実行可能ファイルを変更するには、 <strong>NewExeFileName</strong> パラメーターを使用します。 フレンドリ名を変更するには、 <strong>DisplayName</strong> パラメーターを使用します。</p>\n","isRequired":true,"name":"ExeFileName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このパラメーターはワイルドカード文字を処理し、予期しない動作が発生する可能性があります (推奨されません)。 \n              <strong>DisableWildcardHandling</strong> と組み合わせることはできません。</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"DeploymentType","defaultValue":"None","description":"<p>この設定を変更するには、アプリケーション展開の種類オブジェクトを指定します。 このオブジェクトを取得するには、 <a href=\"get-cmdeploymenttype\">Get-CMDeploymentType</a> コマンドレットを使用します。</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>新しいターゲット実行可能ファイルの名前を指定します。 Configuration Manager クライアントは、このファイル名が実行されているかどうかを確認します。</p>\n","name":"NewExeFileName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このパラメーターを追加して、作業中のアイテムを表すオブジェクトを返します。 既定では、このコマンドレットは出力を生成しない場合があります。</p>\n","name":"PassThru","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"wi","defaultValue":"None","description":"<p>コマンドレットが実行されるとどうなるかを示します。 コマンドレットは実行されません。</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>アプリのインストールを成功させるために閉じる必要がある実行可能ファイルを変更します。</p>\n","syntaxes":["Set-CMDeploymentTypeInstallBehavior -InputObject <IResultObject> -ExeFileName <String>\n [-NewExeFileName <String>] [-DisplayName <String>] [-PassThru] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Set-CMDeploymentTypeInstallBehavior","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"ja-jp","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-CMDeploymentTypeInstallBehavior.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/set-cmdeploymenttypeinstallbehavior","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Set-CMDeploymentTypeInstallBehavior","schemaType":"PowershellCmdlet","summary":"<p>アプリのインストールを成功させるために閉じる必要がある実行可能ファイルを変更します。</p>\n","uid":"ConfigurationManager.Set-CMDeploymentTypeInstallBehavior"}],"canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/set-cmdeploymenttypeinstallbehavior?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/set-cmdeploymenttypeinstallbehavior?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>バージョン 2107 以降では、このコマンドレットを使用して、アプリのインストールを成功させるために閉じる必要がある実行可能ファイルを変更します。 インストール動作機能の一般的な情報については、「 <a href=&quot;/mem/configmgr/apps/deploy-use/check-for-running-executable-files&quot;>実行可能ファイルの実行を確認する</a>」を参照してください。</p>\n<p>PowerShell を使用してアプリケーションをデプロイする場合は、<a href=&quot;new-cmapplicationdeployment&quot;>New-CMApplicationDeployment または Set-CMApplicationDeployment</a> で <strong>AutoCloseExecutable</strong> パラメーター<a href=&quot;set-cmapplicationdeployment&quot;>を</a>使用します。 このパラメーターを使用すると、インストール動作のアプリケーションデプロイ設定が有効になります。</p>\n<div class=&quot;NOTE&quot;>\n<p>注:</p>\n<p>\n              <code>PS XYZ:\\&amp;gt;</code>など、Configuration Manager サイト ドライブから Configuration Manager コマンドレットを実行します。 詳細については、「作業の <a href=&quot;/powershell/sccm/overview&quot;>開始</a>」を参照してください。</p>\n</div>\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-CMDeploymentTypeInstallBehavior.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=\"ja-jp\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"Set-CMDeploymentTypeInstallBehavior\" />\r\n<meta name=\"notes\" content=\"<p>この戻りオブジェクトとそのプロパティの詳細については、「 <a href=&quot;/mem/configmgr/develop/reference/apps/sms_application-server-wmi-class&quot;>サーバー WMI クラスSMS_Application</a>」を参照してください。</p>\n\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>アプリのインストールを成功させるために閉じる必要がある実行可能ファイルを変更します。</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Set-CMDeploymentTypeInstallBehavior -InputObject <IResultObject> -ExeFileName <String>\n [-NewExeFileName <String>] [-DisplayName <String>] [-PassThru] [-DisableWildcardHandling]\n [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Set-CMDeploymentTypeInstallBehavior\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}