{"id":4929,"date":"2022-08-29T17:15:25","date_gmt":"2022-08-29T20:15:25","guid":{"rendered":"https:\/\/categoriaoutros.com.br\/?p=4929"},"modified":"2022-09-05T17:51:07","modified_gmt":"2022-09-05T20:51:07","slug":"windows-powershell-como-converter-o-resultado-de-um-comando-em-html","status":"publish","type":"post","link":"https:\/\/categoriaoutros.com.br\/?p=4929","title":{"rendered":"Windows PowerShell: Como Converter o Resultado de um Comando em HTML?"},"content":{"rendered":"\n<p>Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell.<\/p>\n\n\n\n<p>Esse caractere | \u00e9 chamado de <strong>pipe<\/strong>. Pronuncia-se &#8220;paipe&#8221;. <\/p>\n\n\n\n<p>O Pipe significa cano ou tubo. Ele serve para pegar o resultado de um comando e passar para outro.<\/p>\n\n\n\n<p>Vamos ver um exemplo usando o comando <strong>date<\/strong>:<\/p>\n\n\n\n<p><code><mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">PS C:\\Users\\administrator&gt; date<\/mark><\/code><\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN\"  \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd\"&gt;\n&lt;html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;\n&lt;head&gt;\n&lt;title&gt;HTML TABLE&lt;\/title&gt;\n&lt;\/head&gt;&lt;body&gt;\n&lt;table&gt;\n&lt;colgroup&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;col\/&gt;\n&lt;\/colgroup&gt;\n&lt;tr&gt;&lt;th&gt;DisplayHint&lt;\/th&gt;&lt;th&gt;DateTime&lt;\/th&gt;&lt;th&gt;Date&lt;\/th&gt;&lt;th&gt;Day&lt;\/th&gt;&lt;th&gt;DayOfWeek&lt;\/th&gt;&lt;th&gt;DayOfYear&lt;\/th&gt;&lt;th&gt;Hour&lt;\/th&gt;&lt;th&gt;\nKind&lt;\/th&gt;&lt;th&gt;Millisecond&lt;\/th&gt;&lt;th&gt;Minute&lt;\/th&gt;&lt;th&gt;Month&lt;\/th&gt;&lt;th&gt;Second&lt;\/th&gt;&lt;th&gt;Ticks&lt;\/th&gt;&lt;th&gt;TimeOfDay&lt;\/th&gt;&lt;th&gt;Year&lt;\/th&gt;&lt;\n\/tr&gt;\n&lt;tr&gt;&lt;td&gt;DateTime&lt;\/td&gt;&lt;td&gt;segunda-feira, 29 de agosto de 2022 17:12:14&lt;\/td&gt;&lt;td&gt;29\/08\/2022 00:00:00&lt;\/td&gt;&lt;td&gt;29&lt;\/td&gt;&lt;td&gt;Mo\nnday&lt;\/td&gt;&lt;td&gt;241&lt;\/td&gt;&lt;td&gt;17&lt;\/td&gt;&lt;td&gt;Local&lt;\/td&gt;&lt;td&gt;5&lt;\/td&gt;&lt;td&gt;12&lt;\/td&gt;&lt;td&gt;8&lt;\/td&gt;&lt;td&gt;14&lt;\/td&gt;&lt;td&gt;637973899340056825&lt;\/td&gt;&lt;td&gt;\n17:12:14.0056825&lt;\/td&gt;&lt;td&gt;2022&lt;\/td&gt;&lt;\/tr&gt;\n&lt;\/table&gt;\n&lt;\/body&gt;&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell. Esse caractere | \u00e9 chamado de pipe. Pronuncia-se &#8220;paipe&#8221;. O Pipe significa cano ou tubo. Ele serve para pegar o resultado de um comando e passar para outro. Vamos ver um&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/categoriaoutros.com.br\/?p=4929\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Windows PowerShell: Como Converter o Resultado de um Comando em HTML?&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[2156,1286,2155],"class_list":["post-4929","post","type-post","status-publish","format-standard","hentry","category-informatica-dicas","tag-convertto-html","tag-powershell","tag-powershell-converter-resultado-em-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Windows PowerShell: Como Converter o Resultado de um Comando em HTML? - Categoria Outros<\/title>\n<meta name=\"description\" content=\"Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/categoriaoutros.com.br\/?p=4929\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows PowerShell: Como Converter o Resultado de um Comando em HTML? - Categoria Outros\" \/>\n<meta property=\"og:description\" content=\"Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/categoriaoutros.com.br\/?p=4929\" \/>\n<meta property=\"og:site_name\" content=\"Categoria Outros\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/categoriaoutros\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-29T20:15:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-05T20:51:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/pinguim-paginas-padrao.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1022\" \/>\n\t<meta property=\"og:image:height\" content=\"722\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Categoria: Outros\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CategoriaOutros\" \/>\n<meta name=\"twitter:site\" content=\"@CategoriaOutros\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Categoria: Outros\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=4929#article\",\"isPartOf\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=4929\"},\"author\":{\"name\":\"Categoria: Outros\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40\"},\"headline\":\"Windows PowerShell: Como Converter o Resultado de um Comando em HTML?\",\"datePublished\":\"2022-08-29T20:15:25+00:00\",\"dateModified\":\"2022-09-05T20:51:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=4929\"},\"wordCount\":69,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\"},\"keywords\":[\"convertTo-Html\",\"powershell\",\"powershell converter resultado em html\"],\"articleSection\":[\"Inform\u00e1tica\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/categoriaoutros.com.br\/?p=4929#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=4929\",\"url\":\"https:\/\/categoriaoutros.com.br\/?p=4929\",\"name\":\"Windows PowerShell: Como Converter o Resultado de um Comando em HTML? - Categoria Outros\",\"isPartOf\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#website\"},\"datePublished\":\"2022-08-29T20:15:25+00:00\",\"dateModified\":\"2022-09-05T20:51:07+00:00\",\"description\":\"Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell.\",\"breadcrumb\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=4929#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/categoriaoutros.com.br\/?p=4929\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=4929#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/categoriaoutros.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows PowerShell: Como Converter o Resultado de um Comando em HTML?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#website\",\"url\":\"https:\/\/categoriaoutros.com.br\/\",\"name\":\"Categoria Outros\",\"description\":\"Assuntos Diversos\",\"publisher\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/categoriaoutros.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\",\"name\":\"Categoria Outros\",\"alternateName\":\"Categoria Outros\",\"url\":\"https:\/\/categoriaoutros.com.br\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg\",\"contentUrl\":\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg\",\"width\":400,\"height\":400,\"caption\":\"Categoria Outros\"},\"image\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/categoriaoutros\",\"https:\/\/twitter.com\/CategoriaOutros\",\"https:\/\/br.pinterest.com\/CategoriaOutros\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40\",\"name\":\"Categoria: Outros\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g\",\"caption\":\"Categoria: Outros\"},\"sameAs\":[\"http:\/\/categoriaoutros.com.br\"],\"url\":\"https:\/\/categoriaoutros.com.br\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Windows PowerShell: Como Converter o Resultado de um Comando em HTML? - Categoria Outros","description":"Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell.","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:\/\/categoriaoutros.com.br\/?p=4929","og_locale":"pt_BR","og_type":"article","og_title":"Windows PowerShell: Como Converter o Resultado de um Comando em HTML? - Categoria Outros","og_description":"Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell.","og_url":"https:\/\/categoriaoutros.com.br\/?p=4929","og_site_name":"Categoria Outros","article_publisher":"https:\/\/www.facebook.com\/categoriaoutros","article_published_time":"2022-08-29T20:15:25+00:00","article_modified_time":"2022-09-05T20:51:07+00:00","og_image":[{"width":1022,"height":722,"url":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/pinguim-paginas-padrao.webp","type":"image\/webp"}],"author":"Categoria: Outros","twitter_card":"summary_large_image","twitter_creator":"@CategoriaOutros","twitter_site":"@CategoriaOutros","twitter_misc":{"Escrito por":"Categoria: Outros","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/categoriaoutros.com.br\/?p=4929#article","isPartOf":{"@id":"https:\/\/categoriaoutros.com.br\/?p=4929"},"author":{"name":"Categoria: Outros","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40"},"headline":"Windows PowerShell: Como Converter o Resultado de um Comando em HTML?","datePublished":"2022-08-29T20:15:25+00:00","dateModified":"2022-09-05T20:51:07+00:00","mainEntityOfPage":{"@id":"https:\/\/categoriaoutros.com.br\/?p=4929"},"wordCount":69,"commentCount":0,"publisher":{"@id":"https:\/\/categoriaoutros.com.br\/#organization"},"keywords":["convertTo-Html","powershell","powershell converter resultado em html"],"articleSection":["Inform\u00e1tica"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/categoriaoutros.com.br\/?p=4929#respond"]}]},{"@type":"WebPage","@id":"https:\/\/categoriaoutros.com.br\/?p=4929","url":"https:\/\/categoriaoutros.com.br\/?p=4929","name":"Windows PowerShell: Como Converter o Resultado de um Comando em HTML? - Categoria Outros","isPartOf":{"@id":"https:\/\/categoriaoutros.com.br\/#website"},"datePublished":"2022-08-29T20:15:25+00:00","dateModified":"2022-09-05T20:51:07+00:00","description":"Podemos usar o comando ConvertTo-Html juntamente com o | para gerar uma p\u00e1gina html a partir do resultado de qualquer comando dentro do PowerShell.","breadcrumb":{"@id":"https:\/\/categoriaoutros.com.br\/?p=4929#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/categoriaoutros.com.br\/?p=4929"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/categoriaoutros.com.br\/?p=4929#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/categoriaoutros.com.br\/"},{"@type":"ListItem","position":2,"name":"Windows PowerShell: Como Converter o Resultado de um Comando em HTML?"}]},{"@type":"WebSite","@id":"https:\/\/categoriaoutros.com.br\/#website","url":"https:\/\/categoriaoutros.com.br\/","name":"Categoria Outros","description":"Assuntos Diversos","publisher":{"@id":"https:\/\/categoriaoutros.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/categoriaoutros.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/categoriaoutros.com.br\/#organization","name":"Categoria Outros","alternateName":"Categoria Outros","url":"https:\/\/categoriaoutros.com.br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg","contentUrl":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg","width":400,"height":400,"caption":"Categoria Outros"},"image":{"@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/categoriaoutros","https:\/\/twitter.com\/CategoriaOutros","https:\/\/br.pinterest.com\/CategoriaOutros\/"]},{"@type":"Person","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40","name":"Categoria: Outros","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g","caption":"Categoria: Outros"},"sameAs":["http:\/\/categoriaoutros.com.br"],"url":"https:\/\/categoriaoutros.com.br\/?author=1"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4929"}],"version-history":[{"count":3,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4929\/revisions"}],"predecessor-version":[{"id":5188,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/4929\/revisions\/5188"}],"wp:attachment":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}