How can I tell which version of powershell I have?
$PSVersionTable.PSVersion
(Compared to this DOS classic: ver
)
So I've added this to my profile:
function ver() {
$PSVersionTable.PSVersion
}
But you might also need to consider whether the:
and...
Or, if you want to: check the windows version, I've covered that too.