Wednesday, 14 December 2011

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
Disable-PSRemoting
Disconnect-PSSession
New-PSSessionConfigurationFile
New-PSTransportOption
Out-Default
Out-Host
Out-Null
Receive-PSSession
Resume-Job
Save-Help
Suspend-Job
Test-PSSessionConfigurationFile
Update-Help

Microsoft.PowerShell.Diagnostics

New-WinEvent

Microsoft.PowerShell.Host

None

Microsoft.PowerShell.Management

Get-ControlPanelItem
Rename-Computer
Show-ControlPanelItem

Microsoft.PowerShell.Security

None

Microsoft.PowerShell.Utility

ConvertFrom-Json
ConvertTo-Json
Get-TypeData
Invoke-RestMethod
Invoke-WebRequest
Remove-TypeData
Show-Command
Unblock-File
Out-Default Moved to Core
Out-Host Moved to Core
Out-Null Moved to Core

 
What did I run to get this information?

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…

No comments:

Post a Comment