Skip to content

Instantly share code, notes, and snippets.

@altrive
Last active April 24, 2016 16:45
Show Gist options
  • Save altrive/92ac0cfd64d273125930 to your computer and use it in GitHub Desktop.
Save altrive/92ac0cfd64d273125930 to your computer and use it in GitHub Desktop.
PowerShell v5 Undocumented Features List
Note: Following features are tested on Windows 10 Preview Build 10074 environment

PSReadLine

Windows 10 Preview contains PSReadLine module at "%ProgramFiles%\WindowsPowerShell\Modules" (WMF 5.0 Preview don't contain this modules)

PSReadLine is automatically loaded when PSConsoleHost launched(if available). This feature can be controlled by following command.

[Microsoft.PowerShell.ConsoleShell]::UsePSReadline = $false

Pester

Windows 10 Preview contains Pester module at "%ProgramFiles%\WindowsPowerShell\Modules" (WMF 5.0 Preview don't contain this modules)

Register-ArgumentCompleter

TabExpansion++ features seems to be included PowerShell core.

Write-Information

See: http://asaconsultant.blogspot.jp/2015/04/write-host-will-puppies-survive.html

using namespace

Exaple: https://gist.github.com/altrive/c9b39f5bc8dcc8791274

ETW management Cmdlets

Microsoft Event Tracing Management Cmdlets: https://technet.microsoft.com/ja-jp/library/dn919247%28v=wps.640%29.aspx

These Cmdlets will be available only Windows 10 or lator OS (because it use underlying CIM APIs https://msdn.microsoft.com/en-us/library/dn919685%28v=vs.85%29.aspx)

Example: https://gist.github.com/altrive/a9330830ae6fea83ad38

Remote File Copy

Copy-Item has new parameters -ToSession/-FromSession It transfer binary via PSRemoting using Base64 encoding. (It is relatively slow)

PowerShell ISE remote file edit feature use similar mechanism.

Example: https://gist.github.com/altrive/0decf052f0d0ebabfdf0

PowerShell remoting over VM Bus

Enter-PSSession has new ParameterSets VmId/VMName for Hyper-V VM.

PnpDevice Module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment