Wednesday, November 30, 2011

What's new in PowerShell 3.0 / Windows 8?

After telling some Linux aficionados that PowerShell (finally!) allows you to script most parts of the operating system, I was curious to get a feeling for how far Microsoft has backed this scripting environment in the next version of Windows. I strongly believe that lack of a credible scripting environment has really hampered automation of repetitive tasks, and especially deployments.

Thankfully, it looks like Microsoft has put a lot of effort into the next version of PowerShell on Windows 8.

Below are a list of new aliases, functions, and cmdlets. Note that not all these cmdlets are loaded into the PowerShell session by default - you will need to import the appropriate module first.


Add-AppxPackage
Add-BCDataCacheExtension
Add-BitLockerKeyProtector
Add-BitLockerPassphraseProtector
Add-BitLockerStartupKey
Add-DnsClientNrptRule
Add-Driver
Add-DtcClusterTMMapping
Add-EnrollmentPolicyServer
Add-ExternalKeyProtectorInternal
Add-InitiatorIdToMaskingSet
Add-JobTrigger
Add-KdsRootKey
Add-NetIpHTTPsCertBinding
Add-NetLbfoTeamMember
Add-NetSwitchTeamMember
Add-OdbcDsn
Add-Package
Add-PartitionAccessPath
Add-PasswordProtectorInternal
Add-PhysicalDisk
Add-Printer
Add-PrinterDriver
Add-PrinterPort
Add-ProvisionedAppxPackage
Add-RecoveryPasswordProtectorInternal
Add-SidProtectorInternal
Add-TargetPortToMaskingSet
Add-TpmAndPinAndStartupKeyProtectorInternal
Add-TpmAndPinProtectorInternal
Add-TpmAndStartupKeyProtectorInternal
Add-TpmProtectorInternal
Add-VirtualDiskToMaskingSet
Apply-Unattend
Backup-BitLockerKeyProtector
Backup-Protector
Block-SmbShareAccess
Clear-BCCache
Clear-BitLockerAutoUnlock
Clear-CorruptMountPoint
Clear-Disk
Clear-DNSClientCache
Clear-KdsCache
Clear-Tpm
Close-SmbOpenFile
Close-SmbSession
cnsn
Complete-DtcDiagnosticTransaction
Confirm-SecureBootUEFI
Connect-IscsiDiscoveredTarget
Connect-PSSession
ConvertFrom-Json
ConvertFrom-SecureBootPolicy
ConvertTo-Json
ConvertTo-TpmOwnerAuth
Copy-NetConnectionSecurityRule
Copy-NetFirewallRule
Copy-NetMainModeCryptoSet
Copy-NetMainModeRule
Copy-NetPhase1AuthenticationSet
Copy-NetPhase2AuthenticationSet
Copy-NetQuickModeCryptoSet
Disable-BC
Disable-BCDowngrading
Disable-BCServeOnBattery
Disable-Bitlocker
Disable-BitLockerAutoUnlock
Disable-DAManualSiteSelection
Disable-Feature
Disable-JobTrigger
Disable-MMAgent
Disable-NetAdapter
Disable-NetAdapterBinding
Disable-NetAdapterChecksumOffload
Disable-NetAdapterEncapsulatedPacketTaskOffload
Disable-NetAdapterIPsecOffload
Disable-NetAdapterLso
Disable-NetAdapterPowerManagement
Disable-NetAdapterQos
Disable-NetAdapterRdma
Disable-NetAdapterRsc
Disable-NetAdapterRss
Disable-NetAdapterSriov
Disable-NetAdapterVmq
Disable-NetConnectionSecurityRule
Disable-NetDnsTransitionConfiguration
Disable-NetFirewallRule
Disable-NetIpHTTPsProfile
Disable-NetMainModeRule
Disable-NetNatTransitionConfiguration
Disable-OdbcPerfCounter
Disable-PSTrace
Disable-PSWSManCombinedTrace
Disable-ScheduledJob
Disable-TpmAutoProvisioning
Disable-WdacBidTrace
Disable-WSManTrace
Disconnect-IscsiDiscoveredTarget
Disconnect-PSSession
Dismount-WindowsImage
dnsn
Enable-BCDistributed
Enable-BCDowngrading
Enable-BCHostedClient
Enable-BCHostedServer
Enable-BCLocal
Enable-BCServeOnBattery
Enable-Bitlocker
Enable-BitLockerAutoUnlock
Enable-BitLockerInternal
Enable-DAManualSiteSelection
Enable-Feature
Enable-JobTrigger
Enable-MMAgent
Enable-NetAdapter
Enable-NetAdapterBinding
Enable-NetAdapterChecksumOffload
Enable-NetAdapterEncapsulatedPacketTaskOffload
Enable-NetAdapterIPsecOffload
Enable-NetAdapterLso
Enable-NetAdapterPowerManagement
Enable-NetAdapterQos
Enable-NetAdapterRdma
Enable-NetAdapterRsc
Enable-NetAdapterRss
Enable-NetAdapterSriov
Enable-NetAdapterVmq
Enable-NetConnectionSecurityRule
Enable-NetDnsTransitionConfiguration
Enable-NetFirewallRule
Enable-NetIpHTTPsProfile
Enable-NetMainModeRule
Enable-NetNatTransitionConfiguration
Enable-OdbcPerfCounter
Enable-PSTrace
Enable-PSWSManCombinedTrace
Enable-Sample
Enable-Sample2
Enable-Sample3
Enable-ScheduledJob
Enable-TpmAutoProvisioning
Enable-WdacBidTrace
Enable-WSManTrace
Export-BCCachePackage
Export-BCSecretKey
Export-Certificate
Export-CimCommand
Export-PfxCertificate
Format-SecureBootUEFI
Format-Volume
Get-AppxLastError
Get-AppxPackage
Get-AppxPackageManifest
Get-AutoEnrollmentPolicy
Get-BCClientSettings
Get-BCContentServerSettings
Get-BCDataCache
Get-BCDataCacheExtension
Get-BCHashCache
Get-BCHostedCacheServerSettings
Get-BCNetworkSettings
Get-BCStatus
Get-BitLockerVolume
Get-BitLockerVolumeInternal
Get-Certificate
Get-CertificateNotificationTask
Get-CimAssociatedInstance
Get-CimClass
Get-CimInstance
Get-CimSession
Get-ClusteredScheduledTask
Get-ClusteredScheduledTaskInfo
Get-ControlPanelItem
Get-DAClientExperienceSettings
Get-DAConnectionStatus
Get-DAPolicyChange
Get-DASiteTableEntry
Get-Disk
Get-DNSClient
Get-DNSClientCache
Get-DnsClientEffectiveNrptPolicy
Get-DnsClientNrptGlobal
Get-DnsClientNrptRule
Get-DNSGlobalSettings
Get-DNSServerAddress
Get-Driver
Get-Dtc
Get-DtcAdvancedHostSetting
Get-DtcAdvancedSetting
Get-DtcClusterDefault
Get-DtcClusterTMMapping
Get-DtcDefault
Get-DtcLog
Get-DtcNetworkSetting
Get-DtcTransaction
Get-DtcTransactionsStatistics
Get-DtcTransactionsTraceSession
Get-DtcTransactionsTraceSetting
Get-Edition
Get-EncryptableVolume
Get-EncryptableVolumes
Get-EnrollmentPolicyServer
Get-ExceptionForHrInternal
Get-Feature
Get-InitiatorId
Get-InitiatorPort
Get-IscsiConnection
Get-IscsiDiscoveredTarget
Get-IscsiPersistentTarget
Get-IscsiSession
Get-IscsiTargetPortal
Get-JobTrigger
Get-KdsConfiguration
Get-KdsRootKey
Get-LogProperties
Get-MaskingSet
Get-NCSIPolicyConfiguration
Get-Net6to4Configuration
Get-Net6to4State
Get-NetAdapter
Get-NetAdapterAdvancedProperty
Get-NetAdapterBinding
Get-NetAdapterChecksumOffload
Get-NetAdapterEncapsulatedPacketTaskOffload
Get-NetAdapterHardwareInfo
Get-NetAdapterIPsecOffload
Get-NetAdapterLso
Get-NetAdapterPowerManagement
Get-NetAdapterQos
Get-NetAdapterRdma
Get-NetAdapterRsc
Get-NetAdapterRss
Get-NetAdapterSriov
Get-NetAdapterSriovVf
Get-NetAdapterStatistics
Get-NetAdapterVmq
Get-NetAdapterVMQQueue
Get-NetAdapterVPort
Get-NetAddressFilter
Get-NetApplicationFilter
Get-NetConnectionSecurityRule
Get-NetDnsTransitionConfiguration
Get-NetDnsTransitionMonitoring
Get-NetFirewallProfile
Get-NetFirewallRule
Get-NetInterfaceFilter
Get-NetInterfaceTypeFilter
Get-NetIPAddress
Get-NetIpHTTPsConfiguration
Get-NetIpHTTPsState
Get-NetIPInterface
Get-NetIPv4Protocol
Get-NetIPv6Protocol
Get-NetISATAPConfiguration
Get-NetISATAPState
Get-NetLbfoTeam
Get-NetLbfoTeamMember
Get-NetLbfoTeamNic
Get-NetMainModeCryptoSet
Get-NetMainModeRule
Get-NetMainModeSA
Get-NetNatTransitionConfiguration
Get-NetNatTransitionMonitoring
Get-NetNeighbor
Get-NetOffloadGlobalSetting
Get-NetPhase1AuthenticationSet
Get-NetPhase2AuthenticationSet
Get-NetPrefixPolicy
Get-NetProtocolPortFilter
Get-NetQosPolicy
Get-NetQuickModeCryptoSet
Get-NetQuickModeSA
Get-NetRoute
Get-NetSecurityFilter
Get-NetSecuritySettingData
Get-NetServiceFilter
Get-NetSwitchTeam
Get-NetSwitchTeamMember
Get-NetTCPConnection
Get-NetTCPSetting
Get-NetTeredoConfiguration
Get-NetTeredoState
Get-NetTransportFilter
Get-NetUDPConnection
Get-NetUDPSetting
Get-OdbcDriver
Get-OdbcDsn
Get-OdbcPerfCounter
Get-Package
Get-Partition
Get-PartitionAccessPath
Get-PartitionSupportedSizes
Get-PfxData
Get-PhysicalDisk
Get-PrintConfig
Get-Printer
Get-PrinterDriver
Get-PrinterPort
Get-PrintJob
Get-Protectors
Get-ProvisionedAppxPackage
Get-RecoveryKeyProtectorsCountInternal
Get-ScheduledJob
Get-ScheduledJobOption
Get-ScheduledTask
Get-ScheduledTaskInfo
Get-SecureBootUEFI
Get-SmbClientConfiguration
Get-SmbClientNetworkInterface
Get-SmbConnection
Get-SmbConnectionNetworkInterface
Get-SmbOpenFile
Get-SmbServerConfiguration
Get-SmbServerNetworkInterface
Get-SmbSession
Get-SmbShare
Get-SmbShareAccess
Get-SmbWitnessCluster
Get-SmbWitnessClusterClient
Get-SmbWitnessClusterResource
Get-StorageAttributes
Get-StoragePool
Get-StorageProvider
Get-StorageSettings
Get-StorageSubSystem
Get-TargetPort
Get-Tpm
Get-TypeData
Get-VirtualDisk
Get-VirtualDiskSupportedSizes
Get-Volume
Get-WdacBidTrace
Get-Win32EncryptableVolumeInternal
Get-WindowsImage
Grant-SmbShareAccess
Hide-VirtualDisk
Import-BCCachePackage
Import-BCSecretKey
Import-Certificate
Import-PfxCertificate
Import-PSWorkflow
Import-TpmOwnerAuth
Initialize-Disk
Initialize-Tpm
Initialize-Volume
Install-Dtc
Install-SecureBootPolicy
Invoke-CimMethod
Invoke-RestMethod
Invoke-WebRequest
irm
iwr
Join-DtcDiagnosticResourceManager
Lock-BitLocker
Mount-WindowsImage
Move-SmbWitnessClusterClient
New-CertificateNotificationTask
New-CimInstance
New-CimSession
New-CimSessionOption
New-DASiteTableEntry
New-DtcDiagnosticTransaction
New-IscsiTargetPortal
New-JobTrigger
New-MaskingSet
New-NetAdapterAdvancedProperty
New-NetAuthenticationProposal
New-NetConnectionSecurityRule
New-NetFirewallRule
New-NetIPAddress
New-NetIpHTTPsConfiguration
New-NetLbfoTeam
New-NetLbfoTeamNic
New-NetMainModeCryptoProposal
New-NetMainModeCryptoSet
New-NetMainModeRule
New-NetNatTransitionConfiguration
New-NetNeighbor
New-NetPhase1AuthenticationSet
New-NetPhase2AuthenticationSet
New-NetPrefixPolicy
New-NetQosPolicy
New-NetQuickModeCryptoProposal
New-NetQuickModeCryptoSet
New-NetRoute
New-NetSwitchTeam
New-NetTransportFilter
New-Partition
New-PSSessionConfigurationFile
New-PSTransportOption
New-PSWorkflowExecutionOption
New-ScheduledJobOption
New-ScheduledTask
New-ScheduledTaskAction
New-ScheduledTaskPrincipal
New-ScheduledTaskSettings
New-ScheduledTaskTrigger
New-SelfSignedCertificate
New-SmbConnection
New-SmbShare
New-StoragePool
New-StorageSubSystemVirtualDisk
New-VirtualDisk
New-VirtualDiskClone
New-VirtualDiskSnapshot
New-WinEvent
Open-NetGPO
Optimize-Volume
oss
Publish-BCFileHashes
Publish-BCWebHashes
rcsn
Receive-DtcDiagnosticTransaction
Receive-PSSession
Register-CimIndicationEvent
Register-ClusteredScheduledTask
Register-IscsiPersistentTarget
Register-JobEvent
Register-ScheduledJob
Register-ScheduledTask
Remove-AppxPackage
Remove-BCDataCacheExtension
Remove-BitlockerKeyProtector
Remove-CertificateNotificationTask
Remove-CimInstance
Remove-CimSession
Remove-DASiteTableEntry
Remove-DnsClientNrptRule
Remove-Driver
Remove-DtcClusterTMMapping
Remove-EnrollmentPolicyServer
Remove-InitiatorId
Remove-InitiatorIdFromMaskingSet
Remove-IscsiTargetPortal
Remove-JobTrigger
Remove-KeyProtectorByTypeInternal
Remove-MaskingSet
Remove-NetAdapterAdvancedProperty
Remove-NetConnectionSecurityRule
Remove-NetFirewallRule
Remove-NetIPAddress
Remove-NetIpHTTPsCertBinding
Remove-NetIpHTTPsConfiguration
Remove-NetLbfoTeam
Remove-NetLbfoTeamMember
Remove-NetLbfoTeamNic
Remove-NetMainModeCryptoSet
Remove-NetMainModeRule
Remove-NetMainModeSA
Remove-NetNatTransitionConfiguration
Remove-NetNeighbor
Remove-NetPhase1AuthenticationSet
Remove-NetPhase2AuthenticationSet
Remove-NetPrefixPolicy
Remove-NetQosPolicy
Remove-NetQuickModeCryptoSet
Remove-NetQuickModeSA
Remove-NetRoute
Remove-NetSwitchTeam
Remove-NetSwitchTeamMember
Remove-NetTransportFilter
Remove-OdbcDsn
Remove-Package
Remove-Partition
Remove-PartitionAccessPath
Remove-PhysicalDisk
Remove-Printer
Remove-PrinterDriver
Remove-PrinterPort
Remove-PrintJob
Remove-ProvisionedAppxPackage
Remove-SmbConnection
Remove-SmbShare
Remove-StoragePool
Remove-TargetPortFromMaskingSet
Remove-TypeData
Remove-VirtualDisk
Remove-VirtualDiskFromMaskingSet
Rename-Computer
Rename-DASiteTableEntry
Rename-MaskingSet
Rename-NetAdapter
Rename-NetConnectionSecurityRule
Rename-NetFirewallRule
Rename-NetIpHTTPsConfiguration
Rename-NetLbfoTeam
Rename-NetMainModeCryptoSet
Rename-NetMainModeRule
Rename-NetPhase1AuthenticationSet
Rename-NetPhase2AuthenticationSet
Rename-NetQuickModeCryptoSet
Rename-NetSwitchTeam
Rename-Printer
Repair-SecureBootPolicy
Repair-VirtualDisk
Repair-Volume
Repair-WindowsImage
Reset-BC
Reset-DAClientExperienceSettings
Reset-DASiteTableEntry
Reset-DtcLog
Reset-NCSIPolicyConfiguration
Reset-Net6to4Configuration
Reset-NetAdapterAdvancedProperty
Reset-NetDnsTransitionConfiguration
Reset-NetIpHTTPsConfiguration
Reset-NetISATAPConfiguration
Reset-NetNatTransitionConfiguration
Reset-NetRoute
Reset-NetTeredoConfiguration
Resize-Partition
Resize-VirtualDisk
Resolve-DnsName
Restart-NetAdapter
Restart-PrintJob
Resume-BitLocker
Resume-Job
Resume-PrintJob
Revoke-SmbShareAccess
rujb
Save-Help
Save-NetGPO
Save-WindowsImage
Send-DtcDiagnosticTransaction
Set-AutoEnrollmentPolicy
Set-BCAuthentication
Set-BCCache
Set-BCMinSMBLatency
Set-BCSecretKey
Set-BitLockerVolumeInternal
Set-CimInstance
Set-ClusteredScheduledTask
Set-DAClientExperienceSettings
Set-DASiteTableEntry
Set-Disk
Set-DNSClient
Set-DnsClientNrptGlobal
Set-DnsClientNrptRule
Set-DNSGlobalSettings
Set-DtcAdvancedHostSetting
Set-DtcAdvancedSetting
Set-DtcClusterDefault
Set-DtcClusterTMMapping
Set-DtcDefault
Set-DtcLog
Set-DtcNetworkSetting
Set-DtcTransaction
Set-DtcTransactionsTraceSession
Set-DtcTransactionsTraceSetting
Set-Edition
Set-InitiatorPort
Set-IscsiInitiator
Set-JobTrigger
Set-KdsConfiguration
Set-LogProperties
Set-MMAgent
Set-NCSIPolicyConfiguration
Set-Net6to4Configuration
Set-NetAdapter
Set-NetAdapterAdvancedProperty
Set-NetAdapterBinding
Set-NetAdapterChecksumOffload
Set-NetAdapterEncapsulatedPacketTaskOffload
Set-NetAdapterIPsecOffload
Set-NetAdapterLso
Set-NetAdapterPowerManagement
Set-NetAdapterQos
Set-NetAdapterRdma
Set-NetAdapterRsc
Set-NetAdapterRss
Set-NetAdapterSriov
Set-NetAdapterVmq
Set-NetAddressFilter
Set-NetApplicationFilter
Set-NetConnectionSecurityRule
Set-NetDnsTransitionConfiguration
Set-NetFirewallProfile
Set-NetFirewallRule
Set-NetInterfaceFilter
Set-NetInterfaceTypeFilter
Set-NetIPAddress
Set-NetIpHTTPsConfiguration
Set-NetIPInterface
Set-NetIPv4Protocol
Set-NetIPv6Protocol
Set-NetISATAPConfiguration
Set-NetLbfoTeam
Set-NetLbfoTeamMember
Set-NetLbfoTeamNic
Set-NetMainModeCryptoSet
Set-NetMainModeRule
Set-NetNatTransitionConfiguration
Set-NetNeighbor
Set-NetOffloadGlobalSetting
Set-NetPhase1AuthenticationSet
Set-NetPhase2AuthenticationSet
Set-NetPrefixPolicy
Set-NetProtocolPortFilter
Set-NetQosPolicy
Set-NetQuickModeCryptoSet
Set-NetRoute
Set-NetSecurityFilter
Set-NetSecuritySettingData
Set-NetServiceFilter
Set-NetTCPSetting
Set-NetTeredoConfiguration
Set-NetUDPSetting
Set-OdbcDriver
Set-OdbcDsn
Set-Partition
Set-PhysicalDisk
Set-PrintConfig
Set-Printer
Set-ProductKey
Set-ScheduledJob
Set-ScheduledJobOption
Set-ScheduledTask
Set-SecureBootUEFI
Set-SmbClientConfiguration
Set-SmbServerConfiguration
Set-SmbShare
Set-StorageAttributes
Set-StoragePool
Set-StorageSettings
Set-StorageSubSystem
Set-TpmOwnerAuth
Set-VirtualDisk
Set-Volume
Show-BitLockerRequiredActionsInternal
Show-BitLockerStatus
Show-Command
Show-ControlPanelItem
Show-NetConnectionSecurityRule
Show-NetFirewallRule
Show-VirtualDisk
sls
Start-Dtc
Start-DtcDiagnosticResourceManager
Start-DtcTransactionsTraceSession
Start-ScheduledTask
Start-Trace
Stop-Dtc
Stop-DtcDiagnosticResourceManager
Stop-DtcTransactionsTraceSession
Stop-ScheduledTask
Stop-Trace
sujb
Suspend-BitLocker
Suspend-Job
Suspend-PrintJob
Switch-Certificate
Sync-NetConnectionSecurityRule
TabExpansion2
Test-BitLocker
Test-BitLocker2
Test-Certificate
Test-Dtc
Test-KdsRootKey
Test-PhysicalDisk
Test-PSSessionConfigurationFile
Test-SecureBootPolicy
Test-SystemEntropyForBitLockerInternal
Test-TpmForBitLockerInternal
Test-TpmProtectorNeededInternal
Unblock-File
Unblock-SmbShareAccess
Unblock-Tpm
Undo-DtcDiagnosticTransaction
Uninstall-Dtc
Unlock-AdAccountOrGroupInternal
Unlock-BitLocker
Unlock-PasswordInternal
Unlock-RecoveryKeyInternal
Unlock-RecoveryPasswordInternal
Unregister-ClusteredScheduledTask
Unregister-IscsiPersistentTarget
Unregister-ScheduledJob
Unregister-ScheduledTask
Update-Help
Update-HostStorageCache
Update-IscsiDiscoveredTarget
Update-IscsiTargetPortal
Update-NetConnectionSecurityRule
Update-StorageProviderCache
Use-Unattend
Write-DtcTransactionsTraceSession
gmo -l | select -expandproperty name | % { ipmo $_ }
gcm | select -ExpandProperty name | sort | clip
Compare-Object (type .\win7.txt | sort) (type .\win8.txt | sort) | select -ExpandProperty inputobject | select -Unique | % {"$_
"} | clip

0 comments:

Post a Comment