{"id":3888,"date":"2026-03-24T19:03:36","date_gmt":"2026-03-24T18:03:36","guid":{"rendered":"https:\/\/hinakuu.xyz\/?p=3888"},"modified":"2026-03-24T19:25:32","modified_gmt":"2026-03-24T18:25:32","slug":"cmd-et-powershell","status":"publish","type":"post","link":"https:\/\/hinakuu.xyz\/?p=3888","title":{"rendered":"CMD et PowerShell"},"content":{"rendered":"\n<p>La diff\u00e9rence entre <strong>Command Prompt (CMD)<\/strong> et <strong>Windows PowerShell<\/strong> tient surtout \u00e0 leur <strong>puissance, leur modernit\u00e9 et leur usage<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf1 1. Origine et philosophie<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CMD (Command Prompt)<\/strong><br>\u2192 Ancien outil h\u00e9rit\u00e9 de MS-DOS<br>\u2192 Interface simple pour ex\u00e9cuter des commandes basiques<\/li>\n\n\n\n<li><strong>PowerShell<\/strong><br>\u2192 Con\u00e7u par Microsoft bien plus tard (2006)<br>\u2192 Pens\u00e9 pour <strong>l\u2019administration syst\u00e8me avanc\u00e9e<\/strong> et l\u2019automatisation<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u2699\ufe0f 2. Type de fonctionnement<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CMD<\/strong><br>\u2192 Travaille avec du <strong>texte brut<\/strong><br>\u2192 Les commandes renvoient du texte uniquement<\/li>\n\n\n\n<li><strong>PowerShell<\/strong><br>\u2192 Travaille avec des <strong>objets (.NET)<\/strong><br>\u2192 Permet de manipuler directement des donn\u00e9es structur\u00e9es<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udc49 Exemple :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CMD affiche du texte<\/li>\n\n\n\n<li>PowerShell peut filtrer, trier et manipuler les r\u00e9sultats intelligemment<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde0 3. Puissance et fonctionnalit\u00e9<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CMD<\/strong>\n<ul class=\"wp-block-list\">\n<li>Commandes simples (<code>dir<\/code>, <code>copy<\/code>, <code>del<\/code>)<\/li>\n\n\n\n<li>Scripts limit\u00e9s (.bat)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>PowerShell<\/strong>\n<ul class=\"wp-block-list\">\n<li>Commandes avanc\u00e9es appel\u00e9es <em>cmdlets<\/em> (<code>Get-Process<\/code>, <code>Get-Service<\/code>)<\/li>\n\n\n\n<li>Scripts puissants (.ps1)<\/li>\n\n\n\n<li>Acc\u00e8s au syst\u00e8me, registre Windows, r\u00e9seau, etc.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd04 4. Automatisation<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CMD<\/strong> \u2192 Automatisation basique<\/li>\n\n\n\n<li><strong>PowerShell<\/strong> \u2192 Automatisation <strong>tr\u00e8s avanc\u00e9e<\/strong> (administration de serveurs, cloud, etc.)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udf10 5. Aujourd\u2019hui<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CMD<\/strong><br>\u2192 Toujours pr\u00e9sent mais <strong>plut\u00f4t obsol\u00e8te<\/strong> pour les t\u00e2ches complexes<\/li>\n\n\n\n<li><strong>PowerShell<\/strong><br>\u2192 Standard moderne (surtout avec <strong>PowerShell Core<\/strong>)<br>\u2192 Compatible Windows, Linux et macOS<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde9 R\u00e9sum\u00e9 rapide<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CMD = simple, ancien, limit\u00e9<\/li>\n\n\n\n<li>PowerShell = moderne, puissant, automatisation avanc\u00e9e<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udca1 En pratique<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Utilise <strong>CMD<\/strong> pour :\n<ul class=\"wp-block-list\">\n<li>petites commandes rapides<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Utilise <strong>PowerShell<\/strong> pour :\n<ul class=\"wp-block-list\">\n<li>scripts<\/li>\n\n\n\n<li>administration syst\u00e8me<\/li>\n\n\n\n<li>t\u00e2ches complexes<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/mega.nz\/file\/vYE2nIQR#AiJaJa57Zq8cj_JsRDoI5K28PgtMbMsu9QV3_ZzxQ7E\" target=\"_blank\" rel=\"noreferrer noopener\">CMD et PowerShell<\/a><\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"993\" src=\"https:\/\/hinakuu.xyz\/wp-content\/uploads\/2026\/03\/PowerShell.jpg\" alt=\"\" class=\"wp-image-3884\" style=\"width:689px;height:auto\" srcset=\"https:\/\/hinakuu.xyz\/wp-content\/uploads\/2026\/03\/PowerShell.jpg 800w, https:\/\/hinakuu.xyz\/wp-content\/uploads\/2026\/03\/PowerShell-242x300.jpg 242w, https:\/\/hinakuu.xyz\/wp-content\/uploads\/2026\/03\/PowerShell-768x953.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>La diff\u00e9rence entre Command Prompt (CMD) et Windows PowerShell tient surtout \u00e0 leur puissance, leur modernit\u00e9 et leur<\/p>\n","protected":false},"author":1,"featured_media":3889,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts\/3888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3888"}],"version-history":[{"count":2,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts\/3888\/revisions"}],"predecessor-version":[{"id":3895,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts\/3888\/revisions\/3895"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/media\/3889"}],"wp:attachment":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}