Windows PowerShell Version 2 Vs. Windows PowerShell Version 3
Updated for CTP2!
Show us the numbers!
Module | PowerShell Version 2 | PowerShell Version 3 |
Microsoft.PowerShell.Core | 41 | 55 |
Microsoft.PowerShell.Diagnostics | 4 | 5 |
Microsoft.PowerShell.Host | 2 | 2 |
Microsoft.PowerShell.Management | 79 | 82 |
Microsoft.PowerShell.Security | 10 | 10 |
Microsoft.PowerShell.Utility | 87 | 92 |
Please Note: Some cmdlets have been removed and some have been added.
Ok so that’s the figures, but what are the new cmdlets called?
Module | New/Removed Cmdlets |
Microsoft.PowerShell.Core | Connect-PSSession |
Microsoft.PowerShell.Diagnostics | New-WinEvent |
Microsoft.PowerShell.Host | None |
Microsoft.PowerShell.Management | Get-ControlPanelItem |
Microsoft.PowerShell.Security | None |
Microsoft.PowerShell.Utility | ConvertFrom-Json |
Run in Version 2:
Get-Command -Module Microsoft.PowerShell.Core | Select-Object -ExpandProperty Name | Out-File C:\Temp\Old\Core.txt
Run in Version 3:
Get-Command -Module Microsoft.PowerShell.Core | Select-Object -ExpandProperty Name | Out-File C:\Temp\Core.txt
Compare-Object (Get-Content C:\Temp\Old\Management.txt) (Get-Content C:\Temp\Management.txt)
Repeat for each of the modules…