{"id":27573,"date":"2023-06-15T06:12:00","date_gmt":"2023-06-15T04:12:00","guid":{"rendered":"https:\/\/expert-only.com\/?p=27573"},"modified":"2023-10-20T10:18:13","modified_gmt":"2023-10-20T08:18:13","slug":"listar-archivos-y-carpetas-en-powershell","status":"publish","type":"post","link":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/","title":{"rendered":"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\" id=\"h-introduccion-a-la-lista-de-archivos-utilizando-la-herramienta-de-linea-de-comandos-powershell\"><strong><em>Introducci\u00f3n a la lista de archivos utilizando la herramienta de l\u00ednea de comandos PowerShell.<\/em><\/strong><\/h4>\n\n\n\n<p>Es posible listar archivos y carpetas contenidos en un directorio en PowerShell. PowerShell es una potente herramienta utilizada para ejecutar comandos y scripts en entornos Windows. Mientras que copiar archivos es una tarea esencial, listar archivos, carpetas y subcarpetas es igualmente importante y se puede hacer usando el comando Get-ChildItem de PowerShell. Este tutorial proporciona una gu\u00eda completa para listar archivos en PowerShell.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#1-listar-archivos-y-carpetas-usando-powershell-incluyendo-subcarpetas\" >1. Listar archivos y carpetas usando PowerShell incluyendo subcarpetas<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#2-listar-archivos-y-carpetas-con-atributos\" >2. Listar archivos y carpetas con atributos<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#3-combinar-get-childitem-con-otros-comandos-powershell\" >3. Combinar Get-ChildItem con otros comandos PowerShell<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-1-listar-archivos-y-carpetas-usando-powershell-incluyendo-subcarpetas\"><span class=\"ez-toc-section\" id=\"1-listar-archivos-y-carpetas-usando-powershell-incluyendo-subcarpetas\"><\/span>1. Listar archivos y carpetas usando PowerShell incluyendo subcarpetas<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Windows PowerShell proporciona el comando Get-ChildItem, que te permite listar archivos y directorios dentro de una ruta especificada. Se puede combinar con otras opciones y par\u00e1metros para tareas de listado m\u00e1s complejas.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-1-listado-basico-de-archivos-en-una-carpeta\">1.1 Listado b\u00e1sico de archivos en una carpeta<\/h3>\n\n\n\n<p>Para listar todos los archivos y directorios en una carpeta espec\u00edfica:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-ChildItem C:\\WORK\\Folder\n<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"540\" src=\"https:\/\/expert-only.com\/wp-content\/uploads\/2023\/08\/powershell-list-files-folder-get-childitem.jpg\" alt=\"Listar archivos en una carpeta usando el comando Get-ChildItem de PowerShell\" class=\"wp-image-26570\" srcset=\"https:\/\/expert-only.com\/wp-content\/uploads\/2023\/08\/powershell-list-files-folder-get-childitem.jpg 800w, https:\/\/expert-only.com\/wp-content\/uploads\/2023\/08\/powershell-list-files-folder-get-childitem-300x203.jpg 300w, https:\/\/expert-only.com\/wp-content\/uploads\/2023\/08\/powershell-list-files-folder-get-childitem-768x518.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\"><em>Listar archivos en una carpeta usando el comando Get-ChildItem de PowerShell<\/em><\/figcaption><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-2-listar-archivos-y-filtrar-por-nombre-de-extension\">1.2 Listar archivos y filtrar por nombre de extensi\u00f3n<\/h3>\n\n\n\n<p>Por ejemplo, para listar solo los archivos de texto identificados con la extensi\u00f3n <code>.txt<\/code>, utiliza el comod\u00edn y el txt en el filtro, como en el ejemplo a continuaci\u00f3n:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-ChildItem C:\\WORK\\Folder -Filter \"*.txt\"\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-3-excluir-elementos-especificos-por-extension\">1.3 Excluir elementos espec\u00edficos por extensi\u00f3n<\/h3>\n\n\n\n<p>Para excluir algunos archivos, utiliza el mismo principio, como en la secci\u00f3n anterior, pero esta vez con la palabra clave Exclude, como los documentos de Word <code>.docx<\/code> <a href=\"https:\/\/expert-only.com\/en\/word\/word-shortcuts\/\">Word documents<\/a> como a continuaci\u00f3n:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-ChildItem C:\\WORK\\Folder -Exclude \"*.docx\"\n<\/pre>\n\n\n\n<p>Explora m\u00e1s sobre c\u00f3mo gestionar archivos utilizando PowerShell con este tutorial sobre c\u00f3mo <a href=\"https:\/\/expert-only.com\/en\/ps\/copy-files-recursively-in-powershell\/\"><strong>copiar archivos y carpetas de Windows de forma recursiva<\/strong><\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-wp-embed is-provider-tutoriales-de-sql-y-ti wp-block-embed-tutoriales-de-sql-y-ti\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"yVNH7Q1apw\"><a href=\"https:\/\/expert-only.com\/en\/ps\/copy-files-recursively-in-powershell\/\">How to copy files recursively in PowerShell using Copy-Item?<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u00abHow to copy files recursively in PowerShell using Copy-Item?\u00bb \u2014 Tutoriales de SQL y TI\" src=\"https:\/\/expert-only.com\/en\/ps\/copy-files-recursively-in-powershell\/embed\/#?secret=n0DbsOZ0YE#?secret=yVNH7Q1apw\" data-secret=\"yVNH7Q1apw\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-2-listar-archivos-y-carpetas-con-atributos\"><span class=\"ez-toc-section\" id=\"2-listar-archivos-y-carpetas-con-atributos\"><\/span>2. Listar archivos y carpetas con atributos<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PowerShell es un lenguaje de scripting y shell potente utilizado por los administradores para automatizar tareas en Windows. Trabajar con atributos de archivos en PowerShell te permite gestionar propiedades de archivos como tama\u00f1o, tipo, fecha de creaci\u00f3n y permisos de manera program\u00e1tica. Aqu\u00ed te mostramos c\u00f3mo puedes hacerlo:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.1 Mostrar el tama\u00f1o del archivo con PowerShell<\/h3>\n\n\n\n<p>Puedes recuperar el tama\u00f1o del archivo utilizando el cmdlet <code>Get-Item<\/code>. Aqu\u00ed tienes un ejemplo para comprobar el tama\u00f1o del archivo en el disco.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$file = Get-Item \"C:\\WORK\\Folder\\file.txt\"\n$file.Length\n<\/pre>\n\n\n\n<p>Esto devolver\u00e1 el tama\u00f1o del archivo en bytes. Aprende m\u00e1s sobre c\u00f3mo trabajar con tama\u00f1os de archivos en PowerShell.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.2 Obtener la extensi\u00f3n del archivo<\/h3>\n\n\n\n<p>Puedes identificar el tipo de archivo comprobando su extensi\u00f3n. El siguiente script, por ejemplo, devolver\u00e1 la extensi\u00f3n, en este caso es <code>.jpg<\/code>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$file = Get-Item \"C:\\WORK\\Folder\\image.jpg\"\n$file.Extension\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2.3 Obtener la fecha de creaci\u00f3n de un archivo en PowerShell<\/h3>\n\n\n\n<p>Puedes recuperar la fecha de creaci\u00f3n de un archivo utilizando el siguiente c\u00f3digo:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$file = Get-Item \"C:\\WORK\\Folder\\file.txt\"\n$file.CreationTime\n<\/pre>\n\n\n\n<p>Esto devolver\u00e1 la fecha y hora de creaci\u00f3n. Descubre m\u00e1s m\u00e9todos para encontrar la fecha de creaci\u00f3n de archivos en PowerShell.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.4  Trabajar con permisos de archivos y carpetas<\/h3>\n\n\n\n<p>Puedes gestionar los permisos de los archivos utilizando los cmdlets <code>Get-Acl<\/code> y <code>Set-Acl<\/code>. Aqu\u00ed tienes un ejemplo de c\u00f3mo recuperar los permisos:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$acl = Get-Acl \"C:\\path\\to\\file.txt\"\n$acl.Access\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-3-combinar-get-childitem-con-otros-comandos-powershell\"><span class=\"ez-toc-section\" id=\"3-combinar-get-childitem-con-otros-comandos-powershell\"><\/span>3. Combinar Get-ChildItem con otros comandos PowerShell<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Combina Get-ChildItem con otros cmdlets para operaciones m\u00e1s avanzadas. Por ejemplo, lista archivos y env\u00eda la lista a trav\u00e9s de un tubo a otro comando de <a href=\"https:\/\/www.educba.com\/what-is-powershell\/\">PS<\/a>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Get-ChildItem C:\\WORK\\Folder | ForEach-Object { \/* Haz algo con cada elemento *\/ }\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-conclusion-sobre-como-listar-archivos-y-carpetas-en-powershell\">Conclusi\u00f3n sobre c\u00f3mo listar archivos y carpetas en PowerShell<\/h3>\n\n\n\n<p>Listar archivos usando PowerShell proporciona una forma poderosa para gestionar y manipular estructuras de archivos dentro de Windows. El comando Get-ChildItem ofrece varias opciones para filtrar, excluir y trabajar con diferentes atributos, lo que proporciona flexibilidad para diferentes tareas.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Introducci\u00f3n a la lista de archivos utilizando la herramienta de l\u00ednea de comandos PowerShell. Es posible listar archivos y carpetas contenidos en un directorio en PowerShell. PowerShell es una potente herramienta utilizada para ejecutar comandos y scripts en entornos <a class=\"mh-excerpt-more\" href=\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\" title=\"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":5646,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[647],"tags":[],"class_list":{"0":"post-27573","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ps"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.7 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u00bfC\u00f3mo listar archivos y carpetas en Powershell? PS Scripting<\/title>\n<meta name=\"description\" content=\"Tutorial con scripts para listar Windows archivos, carpetas y subcarpetas en PowerShell utilizando el comando Get-Childtem.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?\" \/>\n<meta property=\"og:description\" content=\"Tutorial con scripts para listar Windows archivos, carpetas y subcarpetas en PowerShell utilizando el comando Get-Childtem.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutoriales de SQL y TI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-15T04:12:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-20T08:18:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Expert-Only\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@expert_only\" \/>\n<meta name=\"twitter:site\" content=\"@expert_only\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Expert-Only\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\"},\"author\":{\"name\":\"Expert-Only\",\"@id\":\"https:\/\/expert-only.com\/es\/#\/schema\/person\/406a9576b52944f018739a42046873ef\"},\"headline\":\"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?\",\"datePublished\":\"2023-06-15T04:12:00+00:00\",\"dateModified\":\"2023-10-20T08:18:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\"},\"wordCount\":579,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/es\/#organization\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg\",\"articleSection\":[\"Powershell\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\",\"url\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\",\"name\":\"\u00bfC\u00f3mo listar archivos y carpetas en Powershell? PS Scripting\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/es\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg\",\"datePublished\":\"2023-06-15T04:12:00+00:00\",\"dateModified\":\"2023-10-20T08:18:13+00:00\",\"description\":\"Tutorial con scripts para listar Windows archivos, carpetas y subcarpetas en PowerShell utilizando el comando Get-Childtem.\",\"breadcrumb\":{\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"es\",\"item\":\"https:\/\/expert-only.com\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/expert-only.com\/es\/#website\",\"url\":\"https:\/\/expert-only.com\/es\/\",\"name\":\"Tutoriales de SQL y TI\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/expert-only.com\/es\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/expert-only.com\/es\/#organization\",\"name\":\"Expert-Only\",\"url\":\"https:\/\/expert-only.com\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/expert-only.com\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"width\":381,\"height\":174,\"caption\":\"Expert-Only\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\",\"https:\/\/x.com\/expert_only\",\"https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/expert-only.com\/es\/#\/schema\/person\/406a9576b52944f018739a42046873ef\",\"name\":\"Expert-Only\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/expert-only.com\/es\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"caption\":\"Expert-Only\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u00bfC\u00f3mo listar archivos y carpetas en Powershell? PS Scripting","description":"Tutorial con scripts para listar Windows archivos, carpetas y subcarpetas en PowerShell utilizando el comando Get-Childtem.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/","og_locale":"es_ES","og_type":"article","og_title":"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?","og_description":"Tutorial con scripts para listar Windows archivos, carpetas y subcarpetas en PowerShell utilizando el comando Get-Childtem.","og_url":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/","og_site_name":"Tutoriales de SQL y TI","article_publisher":"https:\/\/www.facebook.com\/ExpertOnlyCom\/","article_published_time":"2023-06-15T04:12:00+00:00","article_modified_time":"2023-10-20T08:18:13+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg","type":"image\/jpeg"}],"author":"Expert-Only","twitter_card":"summary_large_image","twitter_creator":"@expert_only","twitter_site":"@expert_only","twitter_misc":{"Escrito por":"Expert-Only","Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#article","isPartOf":{"@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/"},"author":{"name":"Expert-Only","@id":"https:\/\/expert-only.com\/es\/#\/schema\/person\/406a9576b52944f018739a42046873ef"},"headline":"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?","datePublished":"2023-06-15T04:12:00+00:00","dateModified":"2023-10-20T08:18:13+00:00","mainEntityOfPage":{"@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/"},"wordCount":579,"commentCount":0,"publisher":{"@id":"https:\/\/expert-only.com\/es\/#organization"},"image":{"@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg","articleSection":["Powershell"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/","url":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/","name":"\u00bfC\u00f3mo listar archivos y carpetas en Powershell? PS Scripting","isPartOf":{"@id":"https:\/\/expert-only.com\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage"},"image":{"@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg","datePublished":"2023-06-15T04:12:00+00:00","dateModified":"2023-10-20T08:18:13+00:00","description":"Tutorial con scripts para listar Windows archivos, carpetas y subcarpetas en PowerShell utilizando el comando Get-Childtem.","breadcrumb":{"@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#primaryimage","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/idea-45DA743585A_1920x1080.jpeg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/expert-only.com\/es\/ps\/listar-archivos-y-carpetas-en-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"es","item":"https:\/\/expert-only.com\/es\/"},{"@type":"ListItem","position":2,"name":"\u00bfC\u00f3mo listar archivos y carpetas en Powershell?"}]},{"@type":"WebSite","@id":"https:\/\/expert-only.com\/es\/#website","url":"https:\/\/expert-only.com\/es\/","name":"Tutoriales de SQL y TI","description":"","publisher":{"@id":"https:\/\/expert-only.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/expert-only.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/expert-only.com\/es\/#organization","name":"Expert-Only","url":"https:\/\/expert-only.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/expert-only.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","width":381,"height":174,"caption":"Expert-Only"},"image":{"@id":"https:\/\/expert-only.com\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ExpertOnlyCom\/","https:\/\/x.com\/expert_only","https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA"]},{"@type":"Person","@id":"https:\/\/expert-only.com\/es\/#\/schema\/person\/406a9576b52944f018739a42046873ef","name":"Expert-Only","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/expert-only.com\/es\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","caption":"Expert-Only"}}]}},"_links":{"self":[{"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/posts\/27573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/comments?post=27573"}],"version-history":[{"count":3,"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/posts\/27573\/revisions"}],"predecessor-version":[{"id":27576,"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/posts\/27573\/revisions\/27576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/media\/5646"}],"wp:attachment":[{"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/media?parent=27573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/categories?post=27573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expert-only.com\/es\/wp-json\/wp\/v2\/tags?post=27573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}