I’m running PS 5.1.1439.
PS C:\Windows\system32> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.1439
PSEdition Desktop
PSCompatibleVersions {1.0, 2.
BuildVersion 10.0.143
CLRVersion 4.0.3031
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
I’m looking for a way to compare what CMDlets are available in PS v4 versus PS v5. When I run the CMD below I see a version property but nothing with a version of 4 or 5.
Get-Command -CommandType cmdlet | Select-Object -Property * | Out-GridView
Is there another cooler way to do this?
I’m familiar with that page. I’m looking for a way to do it programmatically in the shell.
Hi;
“Just Karl” on TechNet website posted something like this but it was for v2 & v3.
I think you can revisit his code and make it working for your case.
Check it @ https://gallery.technet.microsoft.com/PowerShell-Compare-cmdlets-5b477036
He explains it in more details in his post @ Quickly compare PowerShell V2 and V3 cmdlets | Unlock-PowerShell
With a minor update detailed @ Quick modification of the Compare-Command.ps1 script | Unlock-PowerShell
May be you can share with us your updated version
Thanks.
OrIa0o1