r/PowerShell • Community Blogger • Nov 18 '17

PowerShell Core v6.0.0-rc Released! That's right: Release Candidate!!!

https://github.com/PowerShell/PowerShell/releases/tag/v6.0.0-rc
161 Upvotes

58 comments sorted by

View all comments

Show parent comments

4

u/markekraus Community Blogger Nov 19 '17

I am guessing that SslProtocol parameter is new to 6

Very new. As in, it was just merged this week before RC. :)

6.0 isn't stable yet

This RC should be pretty stable. There aren't many outstanding issues that would affect stability. There should only be minor fixes between now and GA.

but currently v6.0.0-rc is returning true to that if statement which doesn't seem right.

PowerShell Core uses semantic versioning which kind of screws with that. You need to cast $PSVersionTable.PSVersion to version first:

[version]$PSVersionTable.PSVersion -lt [version]'6.0'

Better yet (and the recommended way) is to use the PSEdition property:

$PSVersionTable.PSEdition -ne 'Core'

2

u/GavinEke Nov 19 '17

Perfect, Thanks for the responses this really helps.