Instalar PowerShell 6.0

La nueva version de PowerShell esta disponible en GitHub PowerShell 6.0

0

En mi caso descargue la version de x64

1

2

Siguiente

3

Seleccionamos para hacer PowerShell Remoto

4

Instalar

5

Esperamos a que finalice

6

Finalizamos la instalacion y abrimos la consola.

7

La documentación relacionada con esta nueva version (actualmente en preview), la primer cosa que debemos hacer es verificar la version, con Get-Host veremos que dice Version : 6.1.0-preview.1 luego podemos actualizar la ayuda, usamos Update-Help.

PowerShell v6.1.0-preview.1
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type ‘help’ to get help.

PS C:\Program Files\PowerShell\6.1.0-preview.1> get-host

 

Name : ConsoleHost
Version : 6.1.0-preview.1
InstanceId : 3acaae8c-b760-45f5-8602-d51e94459173
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace

PS C:\Program Files\PowerShell\6.1.0-preview.1> update-help

y estamos listos para divertirnos!! ahora hay que instalar algunos modulos, en mi caso instale los de Azure, Office 365, y SQL.

 

PS C:\Program Files\PowerShell\6.1.0-preview.1> install-module AzureRM

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
‘PSGallery’?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is «N»): A
PS C:\Program Files\PowerShell\6.1.0-preview.1> install-module msonline

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
‘PSGallery’?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is «N»): A
PS C:\Program Files\PowerShell\6.1.0-preview.1> install-module SQLServer

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
‘PSGallery’?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is «N»): A
PS C:\Program Files\PowerShell\6.1.0-preview.1> install-module AzureAD

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
‘PSGallery’?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is «N»): A
PS C:\Program Files\PowerShell\6.1.0-preview.1>

Funciona bastante rapido!-

 

Dejar un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *