Saturday, April 30, 2016

New PowerShell cmdlets in Windows 2016 TP5

I have just installed the last technical preview of Windows 2016 and couldn't retain myself from having a look at the new PowerShell cmdlet list.

Here's how I do it (I am logged on Win2016tp5):
Get-Command | Export-Clixml c:\temp\2016tp5.xml
icm -ComputerName win2016tp4 {Get-Command | Export-Clixml C:\temp\2016tp4.xml}
$newcmdlet = diff (Import-Clixml .\2016tp5.xml) (Import-Clixml \\win2016tp4\c$\temp\2016tp4.xml) -Property Name
Here's what I get:
$newcmdlet | Sort Name
Name                               SideIndicator
----                               --
Add-LocalGroupMember               <=
Add-NetEventVFPProvider            <=
Add-NetEventVmSwitchProvider       <=
Backup-AuditPolicy                 <=
Backup-SecurityPolicy              <=
Debug-VirtualMachineQueueOperation <=
Disable-LocalUser                  <=
Disable-StorageMaintenanceMode     <=
Disable-TlsEccCurve                <=
Enable-LocalUser                   <=
Enable-StorageMaintenanceMode      <=
Enable-TlsEccCurve                 <=
Find-Command                       <=
Find-RoleCapability                <=
Get-CustomerRoute                  <=
Get-LocalGroup                     <=
Get-LocalGroupMember               <=
Get-LocalUser                      <=
Get-NetEventVFPProvider            <=
Get-NetEventVmSwitchProvider       <=
Get-PACAMapping                    <=
Get-ProviderAddress                <=
Get-TlsEccCurve                    <=
Invoke-AppxPackageCommand          <=
New-LocalGroup                     <=
New-LocalUser                      <=
Remove-LocalGroup                  <=
Remove-LocalGroupMember            <=
Remove-LocalUser                   <=
Remove-NetEventVFPProvider         <=
Remove-NetEventVmSwitchProvider    <=
Remove-RDDatabaseConnectionString  <=
Rename-LocalGroup                  <=
Rename-LocalUser                   <=
Restore-AuditPolicy                <=
Restore-SecurityPolicy             <=
Set-LocalGroup                     <=
Set-LocalUser                      <=
Set-NetEventVFPProvider            <=
Set-NetEventVmSwitchProvider       <=
Test-EncapOverheadValue            <=
Test-LogicalNetworkConnection      <=
Test-VirtualNetworkConnection      <=
As you can see, there are a bunch of new cmdlets for local accounts management:
Get-Command | ? Source -eq 'Microsoft.PowerShell.LocalAccounts'

CommandType Name                    Version Source
----------- ----                    ------- ------
Cmdlet      Add-LocalGroupMember    1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Disable-LocalUser       1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Enable-LocalUser        1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Get-LocalGroup          1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Get-LocalGroupMember    1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Get-LocalUser           1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      New-LocalGroup          1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      New-LocalUser           1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Remove-LocalGroup       1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Remove-LocalGroupMember 1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Remove-LocalUser        1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Rename-LocalGroup       1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Rename-LocalUser        1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Set-LocalGroup          1.0.0.0 Microsoft.PowerShell.LocalAccounts
Cmdlet      Set-LocalUser           1.0.0.0 Microsoft.PowerShell.LocalAccounts
Though being pretty self-explanatory cmdlets (remember the concept of discoverability?), these add nicely to the current set of cmdlets and make your servers even more manageable.

Powershell, an always evolving language!

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...