Author Posts

April 12, 2017 at 12:21 am

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?

April 12, 2017 at 12:30 pm

I'm familiar with that page. I'm looking for a way to do it programmatically in the shell.

April 14, 2017 at 11:45 am

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 @ https://unlockpowershell.wordpress.com/2012/08/07/quickly-compare-powershell-v2-and-v3-cmdlets-4/

With a minor update detailed @ https://unlockpowershell.wordpress.com/2012/08/08/quick-modification-of-the-compare-command-ps1-script/

May be you can share with us your updated version 🙂

Thanks.

OrIa0o1