{"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"},{"display_name":"Dan Mabee","id":"40476441","name":"damabe","profile_url":"https://github.com/damabe"},{"display_name":"sankethka","id":"16908144","name":"sankethka","profile_url":"https://github.com/sankethka"}],"update_at":"01/09/2026","updated_at_date_time":"2026-09-01T12:13:50.4418907Z"},"_path":"module/configurationmanager/new-cmprogram.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/new-cmprogram?view=sccm-ps","content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell-ref/blob/main/sccm-ps/ConfigurationManager/New-CMProgram.md","default_moniker":"sccm-ps","depot_name":"MSDN.sccm-powershell","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":"56bba39258a39caa081f66a0c8b7adbaf406c331","gitcommit":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/56bba39258a39caa081f66a0c8b7adbaf406c331/sccm-ps/ConfigurationManager/New-CMProgram.md","github_contributors":["aczechowski","damabe","sankethka"],"locale":"fr-fr","manager":"laurawi","Module Name":"ConfigurationManager","monikers":["sccm-ps"],"ms.author":"dannygu","ms.date":"12/28/2021","ms.service":"configuration-manager","ms.subservice":"other","ms.topic":"reference","open_to_public_contributors":true,"original_content_git_url":"https://github.com/MicrosoftDocs/sccm-docs-powershell/blob/live/sccm-ps/ConfigurationManager/New-CMProgram.md","original_content_git_url_template":"{repo}/blob/{branch}/sccm-ps/ConfigurationManager/New-CMProgram.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/f1499c3b-793f-48c3-a9ce-20285bcc6541"],"site_name":"Docs","title":"New-CMProgram","titleSuffix":"Configuration Manager","uhfHeaderId":"MSDocsHeader-Powershell","updated_at":"2026-09-01 12:13 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmprogram","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMProgram","schemaType":"PowershellCmdlet","summary":"<p>Créez un programme pour un package.</p>\n","uid":"ConfigurationManager.New-CMProgram"}],"ocv-translation-feedback":true},"_xrefmap":{"ConfigurationManager":{"href":"./","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"ConfigurationManager","schemaType":"PowershellModule","uid":"ConfigurationManager"},"ConfigurationManager.New-CMProgram":{"href":"new-cmprogram","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMProgram","schemaType":"PowershellCmdlet","summary":"<p>Créez un programme pour un package.</p>\n","uid":"ConfigurationManager.New-CMProgram"}},"description":"<p>Utilisez cette applet de commande pour créer un programme pour un package.\nLes programmes sont des commandes associées à un package Configuration Manager.\nIls identifient les actions qui se produisent lorsque le client reçoit le package client.\nVous pouvez associer plusieurs programmes au même package.\nPour plus d’informations, consultez <a href=\"/mem/configmgr/apps/deploy-use/packages-and-programs\">Packages et programmes dans Configuration Manager</a>.</p>\n<div class=\"NOTE\">\n<p>Remarque</p>\n<p>Exécutez des applets de commande Configuration Manager à partir du lecteur de site Configuration Manager, par exemple <code>PS XYZ:\\&gt;</code>. Pour plus d’informations, consultez <a href=\"/powershell/sccm/overview\">Prise en main</a>.</p>\n</div>\n","examples":[{"code":"$parameters = @{\n  PackageName = \"User State Migration Tool for Windows\"\n  StandardProgramName = \"Scan x64\"\n  CommandLine = \"amd64\\scanstate.exe \\\\gold\\sources$\\userdata /i:miguser.xml /i:migapp.xml /o\"\n  RunType = \"Normal\"\n  ProgramRunType = \"OnlyWhenNoUserIsLoggedOn\"\n  DiskSpaceRequirement = 200\n  DiskSpaceUnit = \"MB\"\n  Duration = 100\n  DriveMode = \"RunWithUnc\"\n}\nNew-CMProgram @parameters","description":"","summary":"<p>Cet exemple <a href=\"/powershell/module/microsoft.powershell.core/about/about_splatting\">montre comment d’abordplate les paramètres de</a> l’applet de commande dans la variable <strong>parameters</strong> . Il n’est pas nécessaire de plaquer les paramètres. Cela facilite simplement la lecture des paramètres pour une ligne de commande aussi longue.</p>\n<p>Cette commande crée un programme nommé <strong>Scan x64</strong> dans le package par défaut <strong>de l’outil de migration de l’état utilisateur pour Windows</strong> .</p>\n","title":"Exemple 1 : Créer un programme"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">None</span>\n"}],"links":[{"href":"disable-cmprogram","text":"Disable-CMProgram"},{"href":"enable-cmprogram","text":"Enable-CMProgram"},{"href":"get-cmprogram","text":"Get-CMProgram"},{"href":"remove-cmprogram","text":"Remove-CMProgram"},{"href":"set-cmprogram","text":"Set-CMProgram"},{"href":"/mem/configmgr/apps/deploy-use/packages-and-programs","text":"Packages et programmes dans Configuration Manager"}],"module":"ConfigurationManager","name":"New-CMProgram","notes":"<p>Pour plus d’informations sur cet objet de retour et ses propriétés, consultez <a href=\"/mem/configmgr/develop/reference/core/servers/configure/sms_program-server-wmi-class\">SMS_Program classe WMI du serveur</a>.</p>\n","outputs":[{"description":"","name":"<span class=\"no-loc xref\">IResultObject</span>\n"}],"parameters":[{"aliases":"AddSupportedOperatingSystemPlatforms","defaultValue":"None","description":"<p>Spécifiez une ou plusieurs plateformes de système d’exploitation prises en charge à ajouter pour le programme. Pour obtenir cet objet, utilisez l’applet <a href=\"get-cmsupportedplatform\">de commande Get-CMSupportedPlatform</a> .</p>\n","name":"AddSupportedOperatingSystemPlatform","parameterValueGroup":"","position":"Named","type":"<p><span class=\"no-loc xref\">IResultObject</span><span>[</span><span>]</span></p>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez la ligne de commande du programme.</p>\n","isRequired":true,"name":"CommandLine","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez le dossier qui contient le programme exécutable. Ce dossier peut être un chemin absolu sur le client ou un chemin d’accès relatif au dossier de distribution qui contient le package.</p>\n","name":"CommandLineFolder","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez un texte facultatif sur le programme, tel qu’une description. Sur les ordinateurs clients, ce texte s’affiche avec le programme dans le Centre logiciel.</p>\n","name":"Comment","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"cf","defaultValue":"False","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>Spécifie un nom de programme d’appareil.</p>\n","isRequired":true,"name":"DeviceProgramName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</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":"DiskSpaceReq","defaultValue":"None","description":"<p>Spécifiez la quantité d’espace disque dont le logiciel a besoin pour s’exécuter sur l’ordinateur. La valeur doit être supérieure ou égale à zéro. Si vous spécifiez une valeur, utilisez le paramètre <strong>DiskSpaceUnit</strong> pour spécifier des unités pour la valeur.</p>\n","name":"DiskSpaceRequirement","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez une unité acceptée pour le paramètre <strong>DiskSpaceRequirement</strong> .</p>\n","name":"DiskSpaceUnit","parameterValueGroup":"KB, MB, GB","position":"Named","type":"<span class=\"no-loc xref\">DiskSpaceUnitType</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez quand le programme doit s’exécuter.</p>\n","name":"DownloadProgramType","parameterValueGroup":"AsSoonAsPossible, OnlyOverFastNetwork, OnlyWhenTheDeviceIsDocked","position":"Named","type":"<span class=\"no-loc xref\">DownloadProgramType</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Si vous utilisez le paramètre <strong>DriveMode</strong> , spécifiez une lettre de lecteur pour l’emplacement.</p>\n","name":"DriveLetter","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Indique si le programme nécessite une lettre de lecteur spécifique, spécifiée dans le paramètre <strong>DriveLetter</strong> .</p>\n<ul>\n<li><p>\n              <code>RunWithUnc</code>: exécutez le programme à partir du chemin UNC. Cette valeur est la valeur par défaut. À compter de la version 2010, cette valeur a été renommée à partir de <code>RenameWithUnc</code>.</p>\n</li>\n<li><p>\n              <code>RequiresDriveLetter</code>: le programme utilise n’importe quelle lettre de lecteur disponible.</p>\n</li>\n<li><p>\n              <code>RequiresSpecificDriveLetter</code>: le programme s’exécute uniquement si le lecteur n’est pas déjà utilisé.</p>\n</li>\n</ul>\n","name":"DriveMode","parameterValueGroup":"RunWithUnc, RequiresDriveLetter, RequiresSpecificDriveLetter","position":"Named","type":"<span class=\"no-loc xref\">DriveModeType</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifie la durée maximale pendant laquelle vous attendez que le programme s’exécute. La valeur par défaut est 120 minutes.</p>\n","name":"Duration","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Int32</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 l’ID du package pour ce programme.</p>\n","isRequired":true,"name":"PackageId","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez un nom de package pour ce programme.</p>\n","isRequired":true,"name":"PackageName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifie les conditions d’ouverture de session nécessaires à l’exécution du programme.</p>\n<p>Le paramètre par défaut est <code>OnlyWhenUserIsLoggedOn</code>.</p>\n","name":"ProgramRunType","parameterValueGroup":"OnlyWhenUserIsLoggedOn, WhetherOrNotUserIsLoggedOn, OnlyWhenNoUserIsLoggedOn","position":"Named","type":"<span class=\"no-loc xref\">ProgramRunType</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Indique si l’ordinateur client se reconnecte au point de distribution lorsque l’utilisateur se connecte à Windows.</p>\n","name":"Reconnect","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"Requirements","defaultValue":"None","description":"<p>Spécifie des exigences supplémentaires pour les programmes standard ou d’appareil.</p>\n","name":"Requirement","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez les informations d’identification dont le programme a besoin pour s’exécuter sur l’ordinateur client.</p>\n","name":"RunMode","parameterValueGroup":"RunWithUserRights, RunWithAdministrativeRights","position":"Named","type":"<span class=\"no-loc xref\">RunModeType</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez le mode dans lequel le programme s’exécute sur l’ordinateur client.</p>\n<p>La valeur par défaut est <code>Normal</code>.</p>\n","name":"RunType","parameterValueGroup":"Normal, Minimized, Maximized, Hidden","position":"Named","type":"<span class=\"no-loc xref\">RunType</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez le nom du programme standard.</p>\n","isRequired":true,"name":"StandardProgramName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Indique s’il faut autoriser les utilisateurs à interagir avec le programme.</p>\n","name":"UserInteraction","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Boolean</span>\n"},{"aliases":"wi","defaultValue":"False","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"},{"aliases":"","defaultValue":"None","description":"<p>Spécifiez un répertoire de travail pour le programme.</p>\n","name":"WorkingDirectory","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>Créez un programme pour un package.</p>\n","syntaxes":["New-CMProgram [-AddSupportedOperatingSystemPlatform <IResultObject[]>] -CommandLine <String>\n [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>] [-DriveLetter <String>]\n [-DriveMode <DriveModeType>] [-Duration <Int32>] -PackageName <String> [-ProgramRunType <ProgramRunType>]\n [-Reconnect <Boolean>] [-RunMode <RunModeType>] [-RunType <RunType>] -StandardProgramName <String>\n [-UserInteraction <Boolean>] [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]","New-CMProgram [-AddSupportedOperatingSystemPlatform <IResultObject[]>] -CommandLine <String>\n [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>] [-DriveLetter <String>]\n [-DriveMode <DriveModeType>] [-Duration <Int32>] -PackageId <String> [-ProgramRunType <ProgramRunType>]\n [-Reconnect <Boolean>] [-RunMode <RunModeType>] [-RunType <RunType>] -StandardProgramName <String>\n [-UserInteraction <Boolean>] [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]","New-CMProgram -CommandLine <String> [-CommandLineFolder <String>] [-Comment <String>]\n -DeviceProgramName <String> [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>]\n [-DownloadProgramType <DownloadProgramType>] -PackageName <String> [-Requirement <String>]\n [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]","New-CMProgram -CommandLine <String> [-CommandLineFolder <String>] [-Comment <String>]\n -DeviceProgramName <String> [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>]\n [-DownloadProgramType <DownloadProgramType>] -PackageId <String> [-Requirement <String>]\n [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]"],"uid":"ConfigurationManager.New-CMProgram","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/New-CMProgram.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/configurationmanager/new-cmprogram","monikerGroup":"f98fea35b6ac2b0f56c6ee5ec06ffce9","name":"New-CMProgram","schemaType":"PowershellCmdlet","summary":"<p>Créez un programme pour un package.</p>\n","uid":"ConfigurationManager.New-CMProgram"}],"canonical_url":"https://learn.microsoft.com/fr-fr/powershell/module/configurationmanager/new-cmprogram?view=sccm-ps","_op_canonicalUrl":"https://learn.microsoft.com/fr-fr/powershell/module/configurationmanager/new-cmprogram?view=sccm-ps"},"pageMetadata":"<meta name=\"description\" content=\"<p>Utilisez cette applet de commande pour créer un programme pour un package.\nLes programmes sont des commandes associées à un package Configuration Manager.\nIls identifient les actions qui se produisent lorsque le client reçoit le package client.\nVous pouvez associer plusieurs programmes au même package.\nPour plus d’informations, consultez <a href=&quot;/mem/configmgr/apps/deploy-use/packages-and-programs&quot;>Packages et programmes dans Configuration Manager</a>.</p>\n<div class=&quot;NOTE&quot;>\n<p>Remarque</p>\n<p>Exécutez des applets de commande Configuration Manager à partir du lecteur de site Configuration Manager, par exemple <code>PS XYZ:\\&amp;gt;</code>. Pour plus d’informations, consultez <a href=&quot;/powershell/sccm/overview&quot;>Prise en main</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/New-CMProgram.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=\"New-CMProgram\" />\r\n<meta name=\"notes\" content=\"<p>Pour plus d’informations sur cet objet de retour et ses propriétés, consultez <a href=&quot;/mem/configmgr/develop/reference/core/servers/configure/sms_program-server-wmi-class&quot;>SMS_Program classe WMI du serveur</a>.</p>\n\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>Créez un programme pour un package.</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"New-CMProgram [-AddSupportedOperatingSystemPlatform <IResultObject[]>] -CommandLine <String>\n [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>] [-DriveLetter <String>]\n [-DriveMode <DriveModeType>] [-Duration <Int32>] -PackageName <String> [-ProgramRunType <ProgramRunType>]\n [-Reconnect <Boolean>] [-RunMode <RunModeType>] [-RunType <RunType>] -StandardProgramName <String>\n [-UserInteraction <Boolean>] [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"New-CMProgram [-AddSupportedOperatingSystemPlatform <IResultObject[]>] -CommandLine <String>\n [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>] [-DriveLetter <String>]\n [-DriveMode <DriveModeType>] [-Duration <Int32>] -PackageId <String> [-ProgramRunType <ProgramRunType>]\n [-Reconnect <Boolean>] [-RunMode <RunModeType>] [-RunType <RunType>] -StandardProgramName <String>\n [-UserInteraction <Boolean>] [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]\n [-WhatIf] [-Confirm] [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"New-CMProgram -CommandLine <String> [-CommandLineFolder <String>] [-Comment <String>]\n -DeviceProgramName <String> [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>]\n [-DownloadProgramType <DownloadProgramType>] -PackageName <String> [-Requirement <String>]\n [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"New-CMProgram -CommandLine <String> [-CommandLineFolder <String>] [-Comment <String>]\n -DeviceProgramName <String> [-DiskSpaceRequirement <String>] [-DiskSpaceUnit <DiskSpaceUnitType>]\n [-DownloadProgramType <DownloadProgramType>] -PackageId <String> [-Requirement <String>]\n [-WorkingDirectory <String>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]\n [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ConfigurationManager.New-CMProgram\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}