{"id":54335,"date":"2026-07-26T18:36:29","date_gmt":"2026-07-26T21:36:29","guid":{"rendered":"https:\/\/mastertrend.info\/?p=54335"},"modified":"2026-07-26T18:36:29","modified_gmt":"2026-07-26T21:36:29","slug":"atualizar-o-powershell-no-windows","status":"publish","type":"post","link":"https:\/\/mastertrend.info\/pt\/actualizar-powershell-en-windows\/","title":{"rendered":"Atualizando o PowerShell no Windows: todos os m\u00e9todos"},"content":{"rendered":"<div class=\"mt-editorial-article\" style=\"max-width: 980px; margin: 0 auto; padding: clamp(18px,3vw,34px); font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif; font-size: 17px; line-height: 1.72; color: #1f2937; background: #ffffff; box-sizing: border-box;\">\n<h2 style=\"margin: 0 0 16px; padding-bottom: 11px; border-bottom: 3px solid #2563eb; font-size: clamp(1.6em,3vw,2.05em); line-height: 1.22; color: #102a43;\">Atualizando o PowerShell no Windows: um guia pr\u00e1tico e m\u00e9todos oficiais.<\/h2>\n<p style=\"margin: 0 0 18px; font-size: 1.08em; line-height: 1.75; color: #283548;\"><strong>Atualizar o PowerShell no Windows<\/strong> \u00c9 necess\u00e1rio distinguir entre dois produtos diferentes. O Windows PowerShell 5.1 faz parte do sistema operacional e recebe atualiza\u00e7\u00f5es de seguran\u00e7a apenas pelo Windows Update. O PowerShell 7 \u00e9 instalado separadamente e utiliza um execut\u00e1vel. <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">pwsh.exe<\/code> e pode ser atualizado com o WinGet, a Microsoft Store, um pacote MSI, um arquivo ZIP ou a ferramenta global .NET.<\/p>\n<div class=\"mt-editorial-summary\" style=\"margin: 24px 0 30px; padding: 20px 22px; border: 1px solid #bfd3ee; border-left: 5px solid #2563eb; border-radius: 14px; background: linear-gradient(135deg,#f8fbff 0%,#edf5ff 100%); box-shadow: 0 8px 22px rgba(23,67,125,.08);\">\n<p style=\"margin: 0 0 9px; font-weight: 800; color: #17457d; font-size: 1.03em;\">Resposta r\u00e1pida<\/p>\n<p style=\"margin: 0 0 10px;\">E <a title=\"RSAT no Windows 11 e seu impacto real no gerenciamento de TI\" href=\"https:\/\/mastertrend.info\/pt\/rsat-no-windows-11\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"34810\">O PowerShell 7 j\u00e1 est\u00e1 instalado, abra o Windows.<\/a> Terminal e executar:<\/p>\n<pre style=\"margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>upgrade do winget --id Microsoft.PowerShell --exact --source winget<\/code><\/pre>\n<p style=\"margin: 12px 0 0;\">Se ainda n\u00e3o estiver instalado, substitua. <code style=\"padding: 2px 6px; border-radius: 5px; background: #e3edf9;\">atualizar<\/code> por <code style=\"padding: 2px 6px; border-radius: 5px; background: #e3edf9;\">instalar<\/code>Para administra\u00e7\u00e3o, acesso remoto ou instala\u00e7\u00e3o para todos os usu\u00e1rios, o MSI \u00e9 mais completo do que o pacote MSIX padr\u00e3o.<\/p>\n<\/div>\n<div class=\"mt-editorial-warning\" style=\"margin: 24px 0 30px; padding: 20px 22px; border: 1px solid #f0ca8b; border-left: 5px solid #d97706; border-radius: 14px; background: #fff9ee;\">\n<p style=\"margin: 0 0 8px; font-weight: 800; color: #8a4707;\">A atualiza\u00e7\u00e3o n\u00e3o corrige todos os erros.<\/p>\n<p style=\"margin: 0;\">Se o PowerShell estiver lento para abrir, travar ou exibir erros, a causa tamb\u00e9m pode estar relacionada ao perfil de inicializa\u00e7\u00e3o, a um m\u00f3dulo incompat\u00edvel, a uma pol\u00edtica corporativa, ao software antiv\u00edrus, a vari\u00e1veis \u200b\u200bde ambiente ou a arquivos corrompidos. A atualiza\u00e7\u00e3o pode corrigir o problema, mas n\u00e3o deve ser considerada a solu\u00e7\u00e3o definitiva.<\/p>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">O Windows PowerShell 5.1 e o PowerShell 7 n\u00e3o s\u00e3o o mesmo aplicativo.<\/h2>\n<div class=\"mt-editorial-table-wrap\" style=\"margin: 22px 0 30px; overflow-x: auto; border: 1px solid #d8e2ee; border-radius: 14px; box-shadow: 0 6px 18px rgba(15,42,67,.06);\">\n<table style=\"width: 100%; min-width: 760px; border-collapse: collapse; background: #ffffff;\">\n<thead>\n<tr>\n<th style=\"padding: 14px 15px; text-align: left; background: #102a43; color: #ffffff;\">Caracter\u00edstica<\/th>\n<th style=\"padding: 14px 15px; text-align: left; background: #102a43; color: #ffffff;\">Windows PowerShell 5.1<\/th>\n<th style=\"padding: 14px 15px; text-align: left; background: #102a43; color: #ffffff;\">PowerShell 7<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>Execut\u00e1vel<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><code>powershell.exe<\/code><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><code>pwsh.exe<\/code><\/td>\n<\/tr>\n<tr style=\"background: #f8fafc;\">\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>Motor<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">.NET Framework 4.x<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">.NET moderno e multiplataforma<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>Atualizar<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><a title=\"O Windows Security n\u00e3o abre? 9 truques eficazes \ud83d\ude80\ud83d\udcbb\" href=\"https:\/\/mastertrend.info\/pt\/o-windows-security-nao-abre\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"34811\">Atualiza\u00e7\u00e3o do Windows; manuten\u00e7\u00e3o de seguran\u00e7a<\/a><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">WinGet, Store\/MSIX, MSI, ZIP ou .NET<\/td>\n<\/tr>\n<tr style=\"background: #f8fafc;\">\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>Rota habitual<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><code>C:\\Windows\\System32\\WindowsPowerShell\\v1.0<\/code><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><code>C:\\Program Files\\PowerShell\\7<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>Estado<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Inclu\u00eddo para compatibilidade; sem novas funcionalidades.<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Desenvolvimento e suporte de ativos<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin: 0 0 18px;\">A instala\u00e7\u00e3o do PowerShell 7 n\u00e3o substitui nem desinstala o Windows PowerShell 5.1. Ambos podem coexistir porque utilizam execut\u00e1veis, pastas, perfis e caminhos de m\u00f3dulos diferentes. Essa separa\u00e7\u00e3o permite que voc\u00ea mantenha ferramentas antigas que ainda sejam necess\u00e1rias. <a title=\"Recursos opcionais no Windows 11: quando ativ\u00e1-los ou desativ\u00e1-los\" href=\"https:\/\/mastertrend.info\/pt\/recursos-opcionais-no-windows-11\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"34809\">Windows PowerShell ao usar os recursos<\/a> modernas de PowerShell 7.<\/p>\n<h3 style=\"margin: 30px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">Vers\u00f5es em vigor a partir de julho de 2026<\/h3>\n<ul style=\"margin: 18px 0 28px; padding-left: 24px;\">\n<li style=\"margin-bottom: 10px;\"><strong>PowerShell 7.6.4 LTS:<\/strong> Vers\u00e3o e pacote de suporte de longo prazo atuais que o WinGet oferece por padr\u00e3o.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>PowerShell 7.5.9 Est\u00e1vel:<\/strong> Vers\u00e3o de ciclo curto, com suporte at\u00e9 10 de novembro de 2026.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>PowerShell 7.4.18 LTS:<\/strong> A vers\u00e3o LTS anterior tamb\u00e9m tem suporte at\u00e9 10 de novembro de 2026.<\/li>\n<li style=\"margin: 0;\"><strong>Pr\u00e9via do PowerShell 7.7:<\/strong> Vers\u00e3o de teste sem suporte \u00e0 produ\u00e7\u00e3o.<\/li>\n<\/ul>\n<div class=\"mt-editorial-note\" style=\"margin: 24px 0 30px; padding: 20px 22px; border: 1px solid #c7d8ed; border-left: 5px solid #2563eb; border-radius: 14px; background: #f3f7fd;\">\n<p style=\"margin: 0 0 8px; font-weight: 800; color: #17457d;\">Est\u00e1vel ou LTS?<\/p>\n<p style=\"margin: 0;\">A conven\u00e7\u00e3o de nomenclatura pode ser confusa porque o PowerShell 7.6 LTS \u00e9 mais recente que o PowerShell 7.5 Stable. Para a maioria dos usu\u00e1rios e equipes de produ\u00e7\u00e3o, o 7.6 LTS \u00e9 a escolha mais sensata devido ao seu ciclo de manuten\u00e7\u00e3o mais longo.<\/p>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Verifique qual vers\u00e3o voc\u00ea tem instalada.<\/h2>\n<p style=\"margin: 0 0 18px;\">Abra o console que voc\u00ea usa normalmente e execute o seguinte comando:<\/p>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>$PSVersionTable | Selecionar-Objeto PSEdition, PSVersion<\/code><\/pre>\n<ul style=\"margin: 18px 0 26px; padding-left: 24px;\">\n<li style=\"margin-bottom: 10px;\"><code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">PSEdition Desktop<\/code> e vers\u00e3o 5.1: voc\u00ea est\u00e1 no Windows PowerShell.<\/li>\n<li style=\"margin-bottom: 10px;\"><code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">PSEdition Core<\/code> e vers\u00e3o 7.x: voc\u00ea est\u00e1 no PowerShell 7.<\/li>\n<li style=\"margin: 0;\">Se voc\u00ea instalou o PowerShell 7, mas ainda est\u00e1 vendo a vers\u00e3o 5.1, provavelmente abriu o arquivo `\/etc\/ps`. <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">powershell.exe<\/code> em vez de <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">pwsh.exe<\/code>.<\/li>\n<\/ul>\n<pre style=\"margin: 18px 0 28px; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>onde.exe powershell onde.exe pwsh<\/code><\/pre>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Qual m\u00e9todo deve ser usado?<\/h2>\n<div class=\"mt-editorial-table-wrap\" style=\"margin: 22px 0 30px; overflow-x: auto; border: 1px solid #d8e2ee; border-radius: 14px; box-shadow: 0 6px 18px rgba(15,42,67,.06);\">\n<table style=\"width: 100%; min-width: 820px; border-collapse: collapse; background: #ffffff;\">\n<thead>\n<tr>\n<th style=\"padding: 14px 15px; text-align: left; background: #102a43; color: #ffffff;\">M\u00e9todo<\/th>\n<th style=\"padding: 14px 15px; text-align: left; background: #102a43; color: #ffffff;\">Melhor uso<\/th>\n<th style=\"padding: 14px 15px; text-align: left; background: #102a43; color: #ffffff;\">Atualiza\u00e7\u00f5es<\/th>\n<th style=\"padding: 14px 15px; text-align: left; background: #102a43; color: #ffffff;\">Limita\u00e7\u00f5es<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>WinGet MSIX<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">PC pessoal<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">WinGet na Loja<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Por usu\u00e1rio; sem PowerShell Remoting.<\/td>\n<\/tr>\n<tr style=\"background: #f8fafc;\">\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>WinGet MSI<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Administra\u00e7\u00e3o e equipe completa<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">WinGet ou Microsoft Update<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Requer administrador<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>MSI do GitHub<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Offline o empresa<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Microsoft Update, se ativado<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Escolher a arquitetura certa<\/td>\n<\/tr>\n<tr style=\"background: #f8fafc;\">\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>Loja Microsoft<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Instala\u00e7\u00e3o gr\u00e1fica<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Autom\u00e1ticas<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Limita\u00e7\u00f5es do MSIX<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>CEP<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Vers\u00f5es port\u00e1teis ou m\u00faltiplas<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Manuais<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Sem PATH ou acesso autom\u00e1tico<\/td>\n<\/tr>\n<tr style=\"background: #f8fafc;\">\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\"><strong>Ferramenta Global .NET<\/strong><\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Desenvolvedores<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">ferramenta dotnet<\/td>\n<td style=\"padding: 13px 15px; border-top: 1px solid #e2e8f0;\">Requer o SDK do .NET.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\"><span id=\"1_Instalar_o_Actualizar_PowerShell_con_comando_Winget\">1. Instale ou atualize o PowerShell usando o WinGet.<\/span><\/h2>\n<p style=\"margin: 0 0 18px;\">A Microsoft recomenda o WinGet como o m\u00e9todo preferencial para instalar o PowerShell em computadores cliente. Voc\u00ea pode execut\u00e1-lo a partir do Terminal do Windows, do Prompt de Comando, do Windows PowerShell ou do PowerShell 7.<\/p>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto; max-width: 740px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191087\" style=\"display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Execute a op\u00e7\u00e3o &quot;Executar como administrador&quot; para abrir um console no Windows.\" width=\"600\" height=\"520\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191087\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Execute a op\u00e7\u00e3o &quot;Executar como administrador&quot; para abrir um console no Windows.\" width=\"600\" height=\"520\" style=\"display:block;width:100%;max-width:600px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">Execute o programa como administrador ao instalar o MSI em todo o computador.<\/figcaption><\/figure>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">Atualize as fontes e localize o pacote oficial.<\/h3>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>atualiza\u00e7\u00e3o de origem do Winget pesquisa --id Microsoft.PowerShell --exact<\/code><\/pre>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto; max-width: 760px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191696\" style=\"display: block; width: 100%; max-width: 615px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_721_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Pesquisa do PowerShell usando o WinGet\" width=\"615\" height=\"347\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191696\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_721_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Pesquisa do PowerShell usando o WinGet\" width=\"615\" height=\"347\" style=\"display:block;width:100%;max-width:615px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">O filtro por ID exato evita confundir o pacote est\u00e1vel com o pacote de pr\u00e9-visualiza\u00e7\u00e3o.<\/figcaption><\/figure>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto; max-width: 740px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191694\" style=\"display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_645_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Identificador Microsoft.PowerShell exibido pelo WinGet\" width=\"600\" height=\"397\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191694\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_645_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Identificador Microsoft.PowerShell exibido pelo WinGet\" width=\"600\" height=\"397\" style=\"display:block;width:100%;max-width:600px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">O ID oficial \u00e9 Microsoft.PowerShell.<\/figcaption><\/figure>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">Instala\u00e7\u00e3o pela primeira vez<\/h3>\n<p style=\"margin: 0 0 18px;\">Desde o PowerShell 7.6, o comando padr\u00e3o instala o pacote MSIX:<\/p>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>winget install --id Microsoft.PowerShell --exact --source winget<\/code><\/pre>\n<p style=\"margin: 0 0 18px;\">Para instalar o MSI tradicional:<\/p>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>winget install --id Microsoft.PowerShell --exact --source winget --installer-type wix<\/code><\/pre>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">Atualizar uma instala\u00e7\u00e3o existente<\/h3>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>upgrade do winget --id Microsoft.PowerShell --exact --source winget<\/code><\/pre>\n<p style=\"margin: 0 0 18px;\">Se voc\u00ea usa MSI e deseja manter esse tipo de instala\u00e7\u00e3o:<\/p>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>winget upgrade --id Microsoft.PowerShell --exact --source winget --installer-type wix<\/code><\/pre>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto 30px; max-width: 780px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191693\" style=\"display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_382_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Instalando o PowerShell usando o WinGet\" width=\"640\" height=\"501\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191693\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_382_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Instalando o PowerShell usando o WinGet\" width=\"640\" height=\"501\" style=\"display:block;width:100%;max-width:640px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">O WinGet exibe a origem, o pacote escolhido e o progresso.<\/figcaption><\/figure>\n<div class=\"mt-editorial-warning\" style=\"margin: 24px 0 30px; padding: 20px 22px; border: 1px solid #f0ca8b; border-left: 5px solid #d97706; border-radius: 14px; background: #fff9ee;\">\n<p style=\"margin: 0 0 8px; font-weight: 800; color: #8a4707;\">Verifique o tipo de instala\u00e7\u00e3o antes de alter\u00e1-la.<\/p>\n<p style=\"margin: 0;\">O MSIX \u00e9 instalado por usu\u00e1rio, enquanto o MSI geralmente \u00e9 instalado para o computador todo. Verifique primeiro. <code style=\"padding: 2px 6px; border-radius: 5px; background: #f8e8c9;\">winget list --id Microsoft.PowerShell --exact<\/code> Para evitar a cria\u00e7\u00e3o de instala\u00e7\u00f5es paralelas desnecess\u00e1rias.<\/p>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\"><span id=\"2_Instalar_o_Actualizar_PowerShell_desde_GitHub\">2. Baixe e instale o PowerShell do GitHub.<\/span><\/h2>\n<p style=\"margin: 0 0 18px;\">O reposit\u00f3rio oficial publica instaladores assinados. Esse m\u00e9todo \u00e9 apropriado quando voc\u00ea precisa manter o instalador, trabalhar offline, escolher a arquitetura ou implant\u00e1-lo com ferramentas corporativas.<\/p>\n<ol style=\"margin: 20px 0 28px; padding-left: 24px;\">\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Abra o <a style=\"color: #0b5cab; font-weight: bold; text-decoration: underline;\" href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\" data-schema-attribute=\"mentions\">P\u00e1gina oficial do PowerShell no GitHub<\/a>.<\/li>\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Descarga <strong>win-x64.msi<\/strong> para a maioria dos PCs ou <strong>win-arm64.msi<\/strong> para Windows sobre ARM.<\/li>\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Para uso geral, escolha a revis\u00e3o mais recente da vers\u00e3o LTS atual.<\/li>\n<li style=\"margin: 0; padding-left: 5px;\">N\u00e3o utilize a Pr\u00e9-visualiza\u00e7\u00e3o em produ\u00e7\u00e3o.<\/li>\n<\/ol>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto; max-width: 840px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191692\" style=\"display: block; width: 100%; max-width: 700px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_841_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Pacotes do PowerShell publicados no GitHub\" width=\"700\" height=\"405\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191692\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_841_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Pacotes do PowerShell publicados no GitHub\" width=\"700\" height=\"405\" style=\"display:block;width:100%;max-width:700px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">Verifique a ramifica\u00e7\u00e3o, a arquitetura e a extens\u00e3o do pacote.<\/figcaption><\/figure>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">Op\u00e7\u00f5es importantes de MSI<\/h3>\n<ul style=\"margin: 18px 0 26px; padding-left: 24px;\">\n<li style=\"margin-bottom: 10px;\"><strong>Adicionar o PowerShell ao PATH:<\/strong> permite que voc\u00ea inicie o PowerShell 7 com <code>pwsh<\/code>.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>Ative a atualiza\u00e7\u00e3o atrav\u00e9s do Microsoft Update:<\/strong> Habilite as atualiza\u00e7\u00f5es atrav\u00e9s do Windows Update, WSUS ou Configuration Manager.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>Registrar o manifesto de registro de eventos do Windows:<\/strong> registra eventos de PowerShell.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>Menu de contexto:<\/strong> Adiciona atalhos opcionais no Explorador de Arquivos.<\/li>\n<li style=\"margin: 0;\"><strong>Habilitar o PowerShell Remoting:<\/strong> Ative-o somente se voc\u00ea realmente precisar e entender suas configura\u00e7\u00f5es.<\/li>\n<\/ul>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto; max-width: 720px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191689\" style=\"display: block; width: 100%; max-width: 568px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_705_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Assistente do PowerShell MSI no Windows\" width=\"568\" height=\"460\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191689\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572269_705_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Assistente do PowerShell MSI no Windows\" width=\"568\" height=\"460\" style=\"display:block;width:100%;max-width:568px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">O MSI permite controlar o PATH, o Microsoft Update, os logs e o acesso remoto.<\/figcaption><\/figure>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto 30px; max-width: 660px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191697\" style=\"display: block; width: 100%; max-width: 500px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_360_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Instala\u00e7\u00e3o do PowerShell conclu\u00edda\" width=\"500\" height=\"399\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191697\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_360_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Instala\u00e7\u00e3o do PowerShell conclu\u00edda\" width=\"500\" height=\"399\" style=\"display:block;width:100%;max-width:500px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">Abra um novo console para recarregar o PATH.<\/figcaption><\/figure>\n<div class=\"mt-editorial-note\" style=\"margin: 24px 0 30px; padding: 20px 22px; border: 1px solid #c7d8ed; border-left: 5px solid #2563eb; border-radius: 14px; background: #f3f7fd;\">\n<p style=\"margin: 0 0 8px; font-weight: 800; color: #17457d;\">O PowerShell 7.7 altera a distribui\u00e7\u00e3o.<\/p>\n<p style=\"margin: 0;\">A Microsoft indica que o PowerShell 7.7 n\u00e3o publicar\u00e1 mais arquivos MSI. O WinGet instalar\u00e1 arquivos MSIX. Isso afeta principalmente administradores que dependem de instala\u00e7\u00f5es para todos os usu\u00e1rios, implanta\u00e7\u00f5es remotas ou implanta\u00e7\u00f5es de MSI.<\/p>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\"><span id=\"3_Actualizar_PowerShell_desde_la_Microsoft_Store\">3. Instale ou atualize a partir da Microsoft Store<\/span><\/h2>\n<p style=\"margin: 0 0 18px;\">A Microsoft Store oferece instala\u00e7\u00e3o gr\u00e1fica e atualiza\u00e7\u00f5es autom\u00e1ticas. \u00c9 adequada para usu\u00e1rios individuais que utilizam o PowerShell localmente.<\/p>\n<ol style=\"margin: 20px 0 28px; padding-left: 24px;\">\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Abre <strong>Loja Microsoft<\/strong>.<\/li>\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Busca <strong>PowerShell<\/strong> e verifique se a editora \u00e9 a Microsoft Corporation.<\/li>\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Cr\u00e9dito <strong>instalar<\/strong>.<\/li>\n<li style=\"margin: 0; padding-left: 5px;\">Para for\u00e7ar uma atualiza\u00e7\u00e3o, abra <strong>Biblioteca<\/strong> e usar <strong>Receba atualiza\u00e7\u00f5es<\/strong>.<\/li>\n<\/ol>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto; max-width: 780px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191688\" style=\"display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_459_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Microsoft Store no Windows 11\" width=\"640\" height=\"553\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191688\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_459_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Microsoft Store no Windows 11\" width=\"640\" height=\"553\" style=\"display:block;width:100%;max-width:640px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">A Microsoft Store gerencia a instala\u00e7\u00e3o do MSIX e suas atualiza\u00e7\u00f5es.<\/figcaption><\/figure>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto 30px; max-width: 780px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191687\" style=\"display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_185_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"PowerShell na Microsoft Store\" width=\"640\" height=\"504\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191687\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_185_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"PowerShell na Microsoft Store\" width=\"640\" height=\"504\" style=\"display:block;width:100%;max-width:640px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">Verifique o produto e o fabricante antes de instalar.<\/figcaption><\/figure>\n<div class=\"mt-editorial-warning\" style=\"margin: 24px 0 30px; padding: 20px 22px; border: 1px solid #f0ca8b; border-left: 5px solid #d97706; border-radius: 14px; background: #fff9ee;\">\n<p style=\"margin: 0 0 8px; font-weight: 800; color: #8a4707;\">Limita\u00e7\u00f5es de armazenamento\/MSIX<\/p>\n<p style=\"margin: 0;\">\u00c9 instalado para um \u00fanico usu\u00e1rio, n\u00e3o oferece suporte ao PowerShell Remoting e restringe certas opera\u00e7\u00f5es de grava\u00e7\u00e3o. <code style=\"padding: 2px 6px; border-radius: 5px; background: #f8e8c9;\">$PSHOME<\/code>, incluindo perfis para todos os usu\u00e1rios e algumas configura\u00e7\u00f5es de escopo do LocalMachine.<\/p>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">4. Utilize o pacote ZIP port\u00e1til.<\/h2>\n<p style=\"margin: 0 0 18px;\">O arquivo ZIP \u00e9 \u00fatil para testar uma vers\u00e3o, manter v\u00e1rias ramifica\u00e7\u00f5es do PowerShell 7.x em pastas separadas ou executar o PowerShell sem uma instala\u00e7\u00e3o convencional.<\/p>\n<ol style=\"margin: 20px 0 28px; padding-left: 24px;\">\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Baixe o arquivo ZIP para x64 ou Arm64 do GitHub.<\/li>\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Desbloqueie o arquivo se o Windows o marcar como proveniente da Internet.<\/li>\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Extraia o conte\u00fado.<\/li>\n<li style=\"margin: 0 0 12px; padding-left: 5px;\">Executar <code>pwsh.exe<\/code> da pasta.<\/li>\n<li style=\"margin: 0; padding-left: 5px;\">Adicione manualmente um atalho ou caminho ao seu PATH, se necess\u00e1rio.<\/li>\n<\/ol>\n<div class=\"mt-editorial-note\" style=\"margin: 24px 0 30px; padding: 20px 22px; border: 1px solid #c7d8ed; border-left: 5px solid #2563eb; border-radius: 14px; background: #f3f7fd;\">\n<p style=\"margin: 0 0 8px; font-weight: 800; color: #17457d;\">O arquivo ZIP n\u00e3o \u00e9 atualizado automaticamente.<\/p>\n<p style=\"margin: 0;\">Voc\u00ea precisa baixar cada nova vers\u00e3o. Al\u00e9m disso, o programa n\u00e3o configura requisitos, acesso, PATH, Microsoft Update ou conex\u00e3o remota.<\/p>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">5. Instale como uma ferramenta .NET global.<\/h2>\n<p style=\"margin: 0 0 18px;\">M\u00e9todo orientado ao desenvolvedor usando o SDK .NET:<\/p>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>dotnet tool install --global PowerShell<\/code><\/pre>\n<p style=\"margin: 0 0 18px;\">Para atualizar:<\/p>\n<pre style=\"margin: 18px 0 28px; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>dotnet tool update --global PowerShell<\/code><\/pre>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Como atualizar o Windows PowerShell 5.1<\/h2>\n<p style=\"margin: 0 0 18px;\">O Windows PowerShell 5.1 n\u00e3o se torna o PowerShell 7. Ele \u00e9 um componente do Windows e recebe atualiza\u00e7\u00f5es de seguran\u00e7a atrav\u00e9s do Windows Update.<\/p>\n<ol style=\"margin: 18px 0 28px; padding-left: 24px;\">\n<li style=\"margin-bottom: 10px;\">Abre <strong>Configura\u00e7\u00e3o<\/strong>.<\/li>\n<li style=\"margin-bottom: 10px;\">Digitar <strong>Atualiza\u00e7\u00e3o do Windows<\/strong>.<\/li>\n<li style=\"margin-bottom: 10px;\">Cr\u00e9dito <strong>Verifique se h\u00e1 atualiza\u00e7\u00f5es<\/strong>.<\/li>\n<li style=\"margin: 0;\">Instale as atualiza\u00e7\u00f5es cumulativas e reinicie o computador, se solicitado.<\/li>\n<\/ol>\n<p style=\"margin: 0 0 18px;\">Mesmo que o Windows seja atualizado, o Windows PowerShell ainda exibir\u00e1 a vers\u00e3o 5.1. Para usar o PowerShell 7, abra o aplicativo. <strong>PowerShell 7<\/strong> ou executar <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">pwsh<\/code>.<\/p>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\"><span id=\"Usar_ambas_versiones_de_PowerShell5_y_PowerShell7\">Utilizando o Windows PowerShell 5.1 e o PowerShell 7 simultaneamente<\/span><\/h2>\n<p style=\"margin: 0 0 18px;\">A coexist\u00eancia \u00e9 intencional. O Windows PowerShell 5.1 ainda pode ser necess\u00e1rio para m\u00f3dulos legados, Windows PowerShell ISE ou ferramentas baseadas no .NET Framework. O PowerShell 7 \u00e9 prefer\u00edvel para scripts mais recentes e automa\u00e7\u00e3o moderna.<\/p>\n<figure class=\"mt-editorial-figure\" style=\"margin: 24px auto 30px; max-width: 840px; padding: 12px; border: 1px solid #d8e2ee; border-radius: 16px; background: #f8fafc; box-shadow: 0 8px 24px rgba(15,42,67,.08);\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-191703\" style=\"display: block; width: 100%; max-width: 700px; height: auto; margin: 0 auto; border-radius: 11px;\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_303_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Perfis do Windows PowerShell 5.1 e PowerShell 7 no Terminal do Windows\" width=\"700\" height=\"403\" title=\"\"><br \/>\n<noscript><img decoding=\"async\" class=\"aligncenter size-full wp-image-191703\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/07\/1751572270_303_Como-actualizar-PowerShell-en-Windows-Todos-los-metodos.jpg\" alt=\"Perfis do Windows PowerShell 5.1 e PowerShell 7 no Terminal do Windows\" width=\"700\" height=\"403\" style=\"display:block;width:100%;max-width:700px;height:auto;margin:0 auto;border-radius:11px;\" title=\"\"><\/noscript><figcaption style=\"margin-top: 10px; font-size: .9em; line-height: 1.5; color: #607080; text-align: center;\">O Terminal do Windows pode exibir perfis separados para ambas as edi\u00e7\u00f5es.<\/figcaption><\/figure>\n<div class=\"mt-editorial-grid\" style=\"display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 16px; margin: 22px 0 30px;\">\n<div style=\"padding: 19px; border: 1px solid #d8e2ee; border-radius: 14px; background: #f8fafc;\">\n<p style=\"margin: 0 0 7px; font-weight: 800; color: #17457d;\">Abrir Windows PowerShell 5.1<\/p>\n<pre style=\"margin: 0; padding: 12px 14px; overflow-x: auto; border-radius: 9px; background: #0f172a; color: #e5edf8; font: 14px\/1.5 Consolas,'Courier New',monospace;\"><code>PowerShell<\/code><\/pre>\n<\/div>\n<div style=\"padding: 19px; border: 1px solid #d8e2ee; border-radius: 14px; background: #f8fafc;\">\n<p style=\"margin: 0 0 7px; font-weight: 800; color: #17457d;\">Abrir PowerShell 7<\/p>\n<pre style=\"margin: 0; padding: 12px 14px; overflow-x: auto; border-radius: 9px; background: #0f172a; color: #e5edf8; font: 14px\/1.5 Consolas,'Courier New',monospace;\"><code>pwsh<\/code><\/pre>\n<\/div>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Verifique se h\u00e1 atualiza\u00e7\u00f5es<\/h2>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>$PSVersionTable | Select-Object PSEdition, PSVersion, OS<\/code><\/pre>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>winget list --id Microsoft.PowerShell --exact<\/code><\/pre>\n<pre style=\"margin: 18px 0 28px; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>Get-Command pwsh | Select-Object Name, Source, Version<\/code><\/pre>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Solu\u00e7\u00e3o de problemas<\/h2>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">O WinGet n\u00e3o \u00e9 reconhecido.<\/h3>\n<p style=\"margin: 0 0 18px;\">Atualizar <strong>Instalador de aplicativos<\/strong> O WinGet n\u00e3o est\u00e1 dispon\u00edvel nativamente na Microsoft Store. Ele n\u00e3o est\u00e1 inclu\u00eddo no Windows Server 2022 ou vers\u00f5es anteriores; o Windows Server 2025 o inclui na Experi\u00eancia de \u00c1rea de Trabalho.<\/p>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">O WinGet n\u00e3o consegue encontrar o PowerShell.<\/h3>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>atualiza\u00e7\u00e3o de origem do winget pesquisa do winget --id Microsoft.PowerShell --exact --source winget<\/code><\/pre>\n<p style=\"margin: 0 0 18px;\">Se a origem continuar danificada, a partir de um console administrativo:<\/p>\n<pre style=\"margin: 18px 0 28px; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>reset da fonte winget --for\u00e7ar atualiza\u00e7\u00e3o da fonte winget<\/code><\/pre>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">pwsh n\u00e3o \u00e9 reconhecido<\/h3>\n<p style=\"margin: 0 0 18px;\">Feche e abra novamente o Terminal do Windows. Se voc\u00ea instalou o MSI, tente:<\/p>\n<pre style=\"margin: 18px 0 28px; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"<\/code><\/pre>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">O PowerShell demora muito para iniciar.<\/h3>\n<pre style=\"margin: 18px 0; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>pwsh -SemPerfil<\/code><\/pre>\n<p style=\"margin: 0 0 18px;\">Se abrir corretamente, verifique o arquivo indicado por <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">$PERFIL<\/code>Fa\u00e7a uma c\u00f3pia antes de modificar o arquivo e verifique as importa\u00e7\u00f5es de m\u00f3dulos, o acesso \u00e0 rede e as personaliza\u00e7\u00f5es de prompts.<\/p>\n<h3 style=\"margin: 29px 0 12px; font-size: 1.3em; line-height: 1.35; color: #17375e;\">Um m\u00f3dulo funciona na vers\u00e3o 5.1, mas falha na vers\u00e3o 7.<\/h3>\n<p style=\"margin: 0 0 18px;\">Procure uma vers\u00e3o compat\u00edvel. Quando o m\u00f3dulo permitir, teste a camada de compatibilidade:<\/p>\n<pre style=\"margin: 18px 0 28px; padding: 15px 17px; overflow-x: auto; border: 1px solid #cbd8e8; border-radius: 10px; background: #0f172a; color: #e5edf8; font: 14px\/1.55 Consolas,'Courier New',monospace;\"><code>Import-Module NomeDoM\u00f3dulo -UseWindowsPowerShell<\/code><\/pre>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Seguran\u00e7a antes da atualiza\u00e7\u00e3o<\/h2>\n<ul style=\"margin: 18px 0 28px; padding-left: 24px;\">\n<li style=\"margin-bottom: 10px;\">Baixe somente da Microsoft Store, WinGet, Microsoft Learn ou PowerShell\/PowerShell no GitHub.<\/li>\n<li style=\"margin-bottom: 10px;\">N\u00e3o utilize portais que reempacotem o instalador.<\/li>\n<li style=\"margin-bottom: 10px;\">Fa\u00e7a c\u00f3pia dos perfis e scripts antes de alterar branches ou tipos de instaladores.<\/li>\n<li style=\"margin-bottom: 10px;\">Teste os scripts cr\u00edticos antes de migrar as tarefas agendadas do Windows PowerShell 5.1.<\/li>\n<li style=\"margin: 0;\">N\u00e3o habilite o acesso remoto nem reduza os controles de seguran\u00e7a para uma instala\u00e7\u00e3o b\u00e1sica.<\/li>\n<\/ul>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Perguntas frequentes<\/h2>\n<div class=\"mt-editorial-faq\" style=\"margin: 0 0 16px; padding: 20px 22px; border: 1px solid #d8e2ee; border-radius: 14px; background: #ffffff; box-shadow: 0 5px 16px rgba(15,42,67,.05);\">\n<h3 style=\"margin: 0 0 9px; font-size: 1.18em; line-height: 1.35; color: #17375e;\">Instalar o PowerShell 7 elimina o Windows PowerShell 5.1?<\/h3>\n<p style=\"margin: 0;\">N\u00e3o. Eles s\u00e3o instalados em pastas diferentes e usam execut\u00e1veis \u200b\u200bdiferentes.<\/p>\n<\/div>\n<div class=\"mt-editorial-faq\" style=\"margin: 0 0 16px; padding: 20px 22px; border: 1px solid #d8e2ee; border-radius: 14px; background: #ffffff; box-shadow: 0 5px 16px rgba(15,42,67,.05);\">\n<h3 style=\"margin: 0 0 9px; font-size: 1.18em; line-height: 1.35; color: #17375e;\">Qual vers\u00e3o \u00e9 recomendada em 2026?<\/h3>\n<p style=\"margin: 0;\">Para a maioria dos usu\u00e1rios e sistemas de produ\u00e7\u00e3o, o PowerShell 7.6 LTS est\u00e1 sempre em sua vers\u00e3o de manuten\u00e7\u00e3o mais recente.<\/p>\n<\/div>\n<div class=\"mt-editorial-faq\" style=\"margin: 0 0 16px; padding: 20px 22px; border: 1px solid #d8e2ee; border-radius: 14px; background: #ffffff; box-shadow: 0 5px 16px rgba(15,42,67,.05);\">\n<h3 style=\"margin: 0 0 9px; font-size: 1.18em; line-height: 1.35; color: #17375e;\">MSI ou Microsoft Store?<\/h3>\n<p style=\"margin: 0;\">Store\/MSIX \u00e9 conveniente para uso pessoal. MSI \u00e9 mais adequado para todos os usu\u00e1rios, acesso remoto e gerenciamento avan\u00e7ado.<\/p>\n<\/div>\n<div class=\"mt-editorial-faq\" style=\"margin: 0 0 16px; padding: 20px 22px; border: 1px solid #d8e2ee; border-radius: 14px; background: #ffffff; box-shadow: 0 5px 16px rgba(15,42,67,.05);\">\n<h3 style=\"margin: 0 0 9px; font-size: 1.18em; line-height: 1.35; color: #17375e;\">O PowerShell atualiza automaticamente?<\/h3>\n<p style=\"margin: 0;\">Os arquivos Store\/MSIX podem ser atualizados automaticamente. Os arquivos MSI podem usar o Microsoft Update, se estiver habilitado. Os arquivos ZIP requerem atualiza\u00e7\u00e3o manual.<\/p>\n<\/div>\n<div class=\"mt-editorial-faq\" style=\"margin: 0 0 16px; padding: 20px 22px; border: 1px solid #d8e2ee; border-radius: 14px; background: #ffffff; box-shadow: 0 5px 16px rgba(15,42,67,.05);\">\n<h3 style=\"margin: 0 0 9px; font-size: 1.18em; line-height: 1.35; color: #17375e;\">Preciso de privil\u00e9gios de administrador?<\/h3>\n<p style=\"margin: 0;\">N\u00e3o \u00e9 adequado para todas as instala\u00e7\u00f5es. O MSIX por usu\u00e1rio pode ser instalado sem privil\u00e9gios de administrador; o MSI para altera\u00e7\u00f5es de equipamentos e sistemas geralmente requer privil\u00e9gios de administrador.<\/p>\n<\/div>\n<div class=\"mt-editorial-faq\" style=\"margin: 0 0 28px; padding: 20px 22px; border: 1px solid #d8e2ee; border-radius: 14px; background: #ffffff; box-shadow: 0 5px 16px rgba(15,42,67,.05);\">\n<h3 style=\"margin: 0 0 9px; font-size: 1.18em; line-height: 1.35; color: #17375e;\">A atualiza\u00e7\u00e3o melhora o desempenho?<\/h3>\n<p style=\"margin: 0;\">Ele pode fornecer corre\u00e7\u00f5es e seguran\u00e7a, mas um console lento tamb\u00e9m exige a verifica\u00e7\u00e3o de perfis, m\u00f3dulos, rede e antiv\u00edrus. Use <code>pwsh -SemPerfil<\/code> Isolar o in\u00edcio.<\/p>\n<\/div>\n<h2 style=\"margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 3px solid #2563eb; font-size: clamp(1.55em,3vw,2em); line-height: 1.25; color: #102a43;\">Conclus\u00e3o<\/h2>\n<p style=\"margin: 0 0 18px;\">A maneira mais simples de <strong>Atualizar o PowerShell no Windows<\/strong> Trata-se de usar o WinGet com o ID exato. <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">Microsoft.PowerShell<\/code>Para uso di\u00e1rio, o MSIX \u00e9 suficiente; para administra\u00e7\u00e3o, acesso remoto ou implementa\u00e7\u00e3o para todos os usu\u00e1rios, o MSI oferece uma integra\u00e7\u00e3o mais completa.<\/p>\n<p style=\"margin: 0 0 24px;\">O Windows PowerShell 5.1 permanecer\u00e1 instalado e ser\u00e1 atualizado pelo Windows Update. Ap\u00f3s instalar o PowerShell 7, abra <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">pwsh<\/code>, verificar <code style=\"padding: 2px 6px; border-radius: 5px; background: #eef2f7;\">$PSVersionTable<\/code> Teste seus m\u00f3dulos e scripts antes de migrar automa\u00e7\u00f5es importantes.<\/p>\n<div class=\"mt-editorial-sources\" style=\"margin-top: 32px; padding: 20px 22px; border-radius: 14px; background: #102a43; color: #e8f0f8; box-shadow: 0 10px 28px rgba(15,42,67,.18);\">\n<p style=\"margin: 0 0 12px; font-weight: 800; font-size: 1.05em; color: #ffffff;\">Fontes oficiais consultadas<\/p>\n<ul style=\"margin: 0; padding-left: 22px;\">\n<li style=\"margin-bottom: 8px;\"><a style=\"color: #9fd0ff; text-decoration: underline;\" href=\"https:\/\/learn.microsoft.com\/powershell\/scripting\/install\/install-powershell-on-windows\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn: como instalar o PowerShell 7 no Windows<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a style=\"color: #9fd0ff; text-decoration: underline;\" href=\"https:\/\/learn.microsoft.com\/powershell\/scripting\/install\/powershell-support-lifecycle\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn: Ciclo de vida e vers\u00f5es<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a style=\"color: #9fd0ff; text-decoration: underline;\" href=\"https:\/\/learn.microsoft.com\/powershell\/scripting\/whats-new\/migrating-from-windows-powershell-51-to-powershell-7\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn: Migrando da vers\u00e3o 5.1 para a 7<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a style=\"color: #9fd0ff; text-decoration: underline;\" href=\"https:\/\/learn.microsoft.com\/powershell\/scripting\/windows-powershell\/update-notification-message\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn: Manuten\u00e7\u00e3o do Windows PowerShell 5.1<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a style=\"color: #9fd0ff; text-decoration: underline;\" href=\"https:\/\/learn.microsoft.com\/windows\/package-manager\/winget\/upgrade\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn: atualiza\u00e7\u00e3o do winget<\/a><\/li>\n<li style=\"margin: 0;\"><a style=\"color: #9fd0ff; text-decoration: underline;\" href=\"https:\/\/github.com\/PowerShell\/PowerShell\/releases\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub oficial: vers\u00f5es e pacotes<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Saiba mais sobre as op\u00e7\u00f5es para atualizar o PowerShell no Windows e escolha entre Winget, GitHub ou Microsoft Store, dependendo da sua configura\u00e7\u00e3o.<\/p>","protected":false},"author":1,"featured_media":115112,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"","iawp_total_views":98,"jnews-multi-image_gallery":[],"jnews_single_post":{"format":"standard","override":[{"template":"1","parallax":"1","fullscreen":"1","layout":"right-sidebar","sidebar":"default-sidebar","second_sidebar":"default-sidebar","sticky_sidebar":"1","share_position":"top","share_float_style":"share-monocrhome","show_share_counter":"1","show_view_counter":"1","show_featured":"1","show_post_meta":"1","show_post_author":"1","show_post_author_image":"1","show_post_date":"1","post_date_format":"default","post_date_format_custom":"Y\/m\/d","show_post_category":"1","show_post_reading_time":"1","post_reading_time_wpm":"300","post_calculate_word_method":"str_word_count","zoom_button_out_step":"2","zoom_button_in_step":"3","show_post_tag":"1","show_prev_next_post":"1","show_popup_post":"1","show_comment_section":"1","number_popup_post":"1","show_author_box":"1","show_post_related":"1","show_inline_post_related":"0"}],"image_override":[{"single_post_thumbnail_size":"crop-500","single_post_gallery_size":"crop-500"}],"trending_post_position":"meta","trending_post_label":"Trending","sponsored_post_label":"Sponsored by","disable_ad":"0","subtitle":""},"jnews_primary_category":[],"jnews_social_meta":[],"jnews_review":[],"enable_review":"","type":"percentage","name":"","summary":"","brand":"","sku":"","good":[],"bad":[],"score_override":"","override_value":"","rating":[],"price":[],"jnews_override_counter":{"view_counter_number":"0","share_counter_number":"0","like_counter_number":"0","dislike_counter_number":"0"},"footnotes":""},"categories":[1428],"tags":[1445,1559,1581],"class_list":["post-54335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-evergreencontent","tag-windows11","tag-windowstips"],"_links":{"self":[{"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/posts\/54335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/comments?post=54335"}],"version-history":[{"count":0,"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/posts\/54335\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/media\/115112"}],"wp:attachment":[{"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/media?parent=54335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/categories?post=54335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mastertrend.info\/pt\/wp-json\/wp\/v2\/tags?post=54335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}