{"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/06/25","updated_at_date_time":"2026-06-25T22:40:21.9840656Z"},"_path":"module/configurationmanager/add-cmcidetectionmethod.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/add-cmcidetectionmethod?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/Add-CMCIDetectionMethod.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","document_id":"b8337cbd-4888-4dc3-ed44-07c7240fddab","document_version_independent_id":"b7b0d7bc-1e3e-59ff-48e4-6ccc39d42ccc","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/Add-CMCIDetectionMethod.md","github_contributors":["aczechowski"],"locale":"ja-jp","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"12/03/2020","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/Add-CMCIDetectionMethod.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/Add-CMCIDetectionMethod.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-06-25 10:40 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/add-cmcidetectionmethod","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Add-CMCIDetectionMethod","schemaType":"PowershellCmdlet","summary":"<p>クライアントがアプリケーションを検出する方法を指定します。</p>\n","uid":"ConfigurationManager.Add-CMCIDetectionMethod"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.Add-CMCIDetectionMethod":{"href":"add-cmcidetectionmethod","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Add-CMCIDetectionMethod","schemaType":"PowershellCmdlet","summary":"<p>クライアントがアプリケーションを検出する方法を指定します。</p>\n","uid":"ConfigurationManager.Add-CMCIDetectionMethod"}},"description":"<p>このコマンドレットは、クライアントがデバイス上のアプリケーションを検出する方法を指定します。 Windows インストーラーの検出、特定のアプリケーションと展開の種類による検出、アプリケーションを検出するためのカスタム スクリプトの 3 つの検出方法があります。</p>\n","examples":[{"code":"$ci = Get-CMConfigurationItem -Name \"testCI\"\n\n$msiFilePath = \"C:\\tools\\CCMTools\\Orca.Msi\"\n\n$ci | Add-CMCIDetectionMethod -DetectionOption Msi -MsiFilePath $msiFilePath","description":"","summary":"","title":"例 1: Windows インストーラーの検出"},{"code":"$ci = Get-CMConfigurationItem -Name \"testCI\"\n\n$ci | Add-CMCIDetectionMethod -DetectionOption DeploymentType -ApplicationName \"testApp\" -DeploymentTypeId \"392672\"","description":"","summary":"","title":"例 2: 特定のアプリとデプロイの種類"},{"code":"$ci = Get-CMConfigurationItem -Name \"testCI\"\n\n$scriptFile  = \"C:\\share\\testScript.ps1\"\n\n$ci | Add-CMCIDetectionMethod -DetectionOption Script -ScriptLanguage PowerShell -ScriptFile $scriptFile","description":"","summary":"","title":"例 3: カスタム スクリプト検出"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">Microsoft.ConfigurationManagement.ManagementProvider.IResultObject</span>\n"}],"links":[{"href":"get-cmconfigurationitem","text":"Get-CMConfigurationItem"},{"href":"get-cmdeploymenttype","text":"Get-CMDeploymentType"}],"module":"ConfigurationManager","name":"Add-CMCIDetectionMethod","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"aliases":"","defaultValue":"None","description":"<p>\n              <strong>DetectionOption</strong> を <code>DeploymentType</code>に設定するときは、このパラメーターを使用して Configuration Manager アプリケーションの名前を指定します。 \n              <strong>DeploymentTypeID</strong> でこのパラメーターを使用します。</p>\n","name":"ApplicationName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"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>DetectionOption</strong> を <code>DeploymentType</code> に設定する場合は、このパラメーターを使用して、Configuration Manager アプリケーションの展開の種類の ID を指定します。 \n              <strong>ApplicationName</strong> でこのパラメーターを使用します。</p>\n<p>デプロイの種類 ID を取得するには、 <a href=\"get-cmdeploymenttype\">Get-CMDeploymentType</a> コマンドレットを使用し、 <strong>CI_ID</strong> プロパティを参照します。</p>\n","name":"DeploymentTypeId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>使用する検出方法を指定します。</p>\n","isRequired":true,"name":"DetectionOption","parameterValueGroup":"None, Msi, Script, DeploymentType","position":"Named","type":"<span class=\"no-loc xref\">ApplicationDetectionMethod</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>このパラメーターはワイルドカード文字を処理し、予期しない動作が発生する可能性があります (推奨されません)。 \n              <strong>DisableWildcardHandling</strong> と組み合わせることはできません。</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>アプリケーション展開の種類の構成項目オブジェクトを指定します。 このオブジェクトを取得するには、 <a href=\"get-cmconfigurationitem\">Get-CMConfigurationItem を使用します</a>。</p>\n","isRequired":true,"name":"InputObject","parameterValueGroup":"","pipelineInput":true,"position":"0","type":"<span class=\"no-loc xref\">IResultObject</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>このパラメーターを <code>$true</code> に設定して、ユーザーごとにインストールされるように指定します。</p>\n","name":"IsPerUserInstallation","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>\n              <strong>DetectionOption を</strong><code>Msi</code> に設定する場合は、このパラメーターを使用して Windows インストーラー ファイルへのパスを指定します。</p>\n","name":"MsiFilePath","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":"","defaultValue":"None","description":"<p>\n              <strong>DetectionOption を</strong><code>Script</code> に設定する場合は、このパラメーターを使用してスクリプトへのパスを指定します。 \n              <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>\n              <strong>DetectionOption を</strong><code>Script</code> に設定する場合は、このパラメーターを使用してスクリプトの言語を指定します。 ScriptFile と <strong>ScriptText</strong> でこのパラメーター <strong>を使用します</strong>。</p>\n","name":"ScriptLanguage","parameterValueGroup":"PowerShell, VBScript, JScript","position":"Named","type":"<span class=\"no-loc xref\">ScriptingLanguage</span>\n"},{"aliases":"ScriptContent","defaultValue":"None","description":"<p>\n              <strong>DetectionOption を</strong><code>Script</code> に設定する場合は、このパラメーターを使用してスクリプトのテキストを指定します。 \n              <strong>ScriptLanguage</strong> でこのパラメーターを使用します。</p>\n","name":"ScriptText","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</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":["Add-CMCIDetectionMethod [-InputObject] <IResultObject> -DetectionOption <ApplicationDetectionMethod>\n [-MsiFilePath <String>] [-IsPerUserInstallation <Boolean>] [-ScriptFile <String>]\n [-ScriptLanguage <ScriptingLanguage>] [-ScriptText <String>] [-ApplicationName <String>]\n [-DeploymentTypeId <String>] [-PassThru] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf]\n [-Confirm] [<CommonParameters>]"],"uid":"ConfigurationManager.Add-CMCIDetectionMethod","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/Add-CMCIDetectionMethod.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/add-cmcidetectionmethod","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"Add-CMCIDetectionMethod","schemaType":"PowershellCmdlet","summary":"<p>クライアントがアプリケーションを検出する方法を指定します。</p>\n","uid":"ConfigurationManager.Add-CMCIDetectionMethod"}],"canonical_url":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/add-cmcidetectionmethod?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/ja-jp/powershell/module/configurationmanager/add-cmcidetectionmethod?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>このコマンドレットは、クライアントがデバイス上のアプリケーションを検出する方法を指定します。 Windows インストーラーの検出、特定のアプリケーションと展開の種類による検出、アプリケーションを検出するためのカスタム スクリプトの 3 つの検出方法があります。</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/Add-CMCIDetectionMethod.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=\"Add-CMCIDetectionMethod\" />\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=\"Add-CMCIDetectionMethod [-InputObject] <IResultObject> -DetectionOption <ApplicationDetectionMethod>\n [-MsiFilePath <String>] [-IsPerUserInstallation <Boolean>] [-ScriptFile <String>]\n [-ScriptLanguage <ScriptingLanguage>] [-ScriptText <String>] [-ApplicationName <String>]\n [-DeploymentTypeId <String>] [-PassThru] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf]\n [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.Add-CMCIDetectionMethod\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}