{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/fr-fr/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":"25/06/2026","updated_at_date_time":"2026-06-25T22:40:22.6671072Z"},"_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/fr-fr/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":"fr-fr","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>Spécifiez la façon dont le client détecte une application.</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>Spécifiez la façon dont le client détecte une application.</p>\n","uid":"ConfigurationManager.Add-CMCIDetectionMethod"}},"description":"<p>Cette applet de commande spécifie comment le client détecte une application sur l’appareil. Il existe trois méthodes de détection : la détection de Windows Installer, la détection par une application et un type de déploiement spécifiques, et un script personnalisé pour détecter l’application.</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":"Exemple 1 : détection de Windows Installer"},{"code":"$ci = Get-CMConfigurationItem -Name \"testCI\"\n\n$ci | Add-CMCIDetectionMethod -DetectionOption DeploymentType -ApplicationName \"testApp\" -DeploymentTypeId \"392672\"","description":"","summary":"","title":"Exemple 2 : application et type de déploiement spécifiques"},{"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":"Exemple 3 : détection de script personnalisée"}],"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>Lorsque vous définissez <strong>DetectionOption</strong><code>DeploymentType</code>sur , utilisez ce paramètre pour spécifier le nom d’une application Configuration Manager. Utilisez ce paramètre avec <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>Une invite de confirmation apparaît avant d’exécuter le cmdlet.</p>\n","name":"Confirm","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Lorsque vous définissez <strong>DetectionOption</strong> sur <code>DeploymentType</code>, utilisez ce paramètre pour spécifier l’ID du type de déploiement de l’application Configuration Manager. Utilisez ce paramètre avec <strong>ApplicationName</strong>.</p>\n<p>Pour obtenir l’ID de type de déploiement, utilisez l’applet <a href=\"get-cmdeploymenttype\">de commande Get-CMDeploymentType</a> et référencez la propriété <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>Spécifiez la méthode de détection à utiliser.</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>Ce paramètre traite les caractères génériques comme des valeurs de caractère littéral. Vous ne pouvez pas la combiner avec <strong>ForceWildcardHandling</strong>.</p>\n","name":"DisableWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Ce paramètre traite les caractères génériques et peut entraîner un comportement inattendu (non recommandé). Vous ne pouvez pas la combiner avec <strong>DisableWildcardHandling</strong>.</p>\n","name":"ForceWildcardHandling","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez un objet élément de configuration pour un type de déploiement d’application. Pour obtenir cet objet, utilisez <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>Définissez ce paramètre sur <code>$true</code> pour spécifier qu’il est installé par utilisateur.</p>\n","name":"IsPerUserInstallation","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Lorsque vous définissez <strong>DetectionOption</strong> sur <code>Msi</code>, utilisez ce paramètre pour spécifier le chemin d’accès au fichier Windows Installer.</p>\n","name":"MsiFilePath","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Renvoie un objet représentant l’élément avec lequel vous travaillez. Par défaut, cette applet de commande peut ne pas générer de sortie.</p>\n","name":"PassThru","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Lorsque vous définissez <strong>DetectionOption</strong> sur <code>Script</code>, utilisez ce paramètre pour spécifier le chemin d’accès au script. Utilisez ce paramètre avec <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>Lorsque vous définissez <strong>DetectionOption</strong> sur <code>Script</code>, utilisez ce paramètre pour spécifier la langue du script. Utilisez ce paramètre avec <strong>ScriptFile</strong> et <strong>ScriptText</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>Lorsque vous définissez <strong>DetectionOption</strong> sur <code>Script</code>, utilisez ce paramètre pour spécifier le texte du script. Utilisez ce paramètre avec <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>Présente ce qui se produit si le cmdlet s’exécute. L’applet de commande ne s’exécute pas.</p>\n","name":"WhatIf","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>Spécifiez la façon dont le client détecte une application.</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":"fr-fr","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>Spécifiez la façon dont le client détecte une application.</p>\n","uid":"ConfigurationManager.Add-CMCIDetectionMethod"}],"canonical_url":"https://learn.microsoft.com/fr-fr/powershell/module/configurationmanager/add-cmcidetectionmethod?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/fr-fr/powershell/module/configurationmanager/add-cmcidetectionmethod?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>Cette applet de commande spécifie comment le client détecte une application sur l’appareil. Il existe trois méthodes de détection : la détection de Windows Installer, la détection par une application et un type de déploiement spécifiques, et un script personnalisé pour détecter l’application.</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=\"fr-fr\" />\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>Spécifiez la façon dont le client détecte une application.</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/"}