PowerShell

Getting started with PowerShell Core 6.0 (Installation, First Steps …)

The magic moment is here: PowerShell becomes a cross-platform. PowerShell is now available for Windows, Linux and MacOS. PowerShell Core can be installed in parallel to Windows PowerShell. In this blog post I will show you my first steps with this new PowerShell environment.

Installing PowerShell Core 6.0

As mentioned, we have to download the package from GitHub. It’s located here:

https://github.com/PowerShell/PowerShell

1.JPG

Choose the installation package. I’m using Windows so I decided to download the Windows (x64) msi package.

1.JPG

Next run the installation package. Welcome to PowerShell 6.0 Core!

Unbenannt.JPG

Accept the license agreement. Choose the destination folder and click Install.

Click on Launch PowerShell.

Unbenannt.JPG

First Steps

It turns out, that powershell.exe is gone and replaced with pwsh.exe.

Unbenannt.JPGAnd yes, I’m in PowerShell 6.0 Core.


Get-Host

Unbenannt.JPG

Ok, now let’s discover the commands. How much commands are there?


(Get-Command).count

Unbenannt.JPG

425 commands. There’s a lot of them.

It’s time to take a look at the modules.


Get-Module -ListAvailable

Unbenannt.JPG

I really miss the NetTCPIP module and some other commands. For all those who do not know these commands yet, I refer to two of my contributions:

The modern version of ping: Test-Connection

PowerShell: Check open/closed ports with Test-NetConnection

It’s also possible to start PowerShell Core from your current Windows PowerShell session.


pwsh

Unbenannt.JPG

The Profiles

Due to the fact that there are now two types of PowerShell on the system, the profiles have also been adapted.

Unbenannt.JPG

Note that there are now 2 folders in the users profile:

Unbenannt.JPG

One for Core and one for Windows PowerShell.

So that’s it for today. Have fun discovering PowerShell Core 6.0

Categories: PowerShell

Tagged as: ,

3 replies »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s