Category Archives: PowerShell v6

PowerShell v6.2.2

PowerShell v6.2.2 has just been released. One breaking change – the Enter-PSHostProcess is disabled when system is in lock down mode. The jumplist is now created in STA to avoid potential CLR crash Other changes are around the build process. … Continue reading

Posted in PowerShell v6 | Leave a comment

Load format file in a module

Staying with the test-connection function I thought I’d show how to turn the function and format file into a module. This includes how to load the format file in a module. Create a folder TestConnection Copy the format file and … Continue reading

Posted in PowerShell 7, PowerShell v6 | Leave a comment

Test-Connection formatting

Last time I showed how to write a function that replaces the current PowerShell 6/7 Test-Connection. This time I’ll show you how to do the Test-Connection formatting. Using just the function you get something like this: PS>  test-connection -computername 127.0.0.1 … Continue reading

Posted in PowerShell 7, PowerShell v6 | Leave a comment

PowerShell 6/7 Test-Connection

The PowerShell 6/7 Test-Connection implementation as of PowerShell v6.2.1 and PowerShell v7.0 preview 1 is in my opinion a horrible example of how not to create output. the cmdlet shows  each ping and then wraps all of the results in … Continue reading

Posted in PowerShell 7, PowerShell v6 | 1 Comment

Start Jobs with &

You usually start background jobs using Start-Job. Now you can start jobs with &. As of PowerShell v6.0 putting & at the end of a pipeline causes the pipeline to be run as a PowerShell job, for instance this pipeline: … Continue reading

Posted in PowerShell v6 | Leave a comment

Install-Module and Update-Module Scope parameter

I’ve written a couple of times this year on the problems around the PowerShellGet module and the Scope (Allusers or CurrentUsers). The situation is a lot easier now that Install-Module and Update-Module Scope parameter is available. Install-Module has always had … Continue reading

Posted in PowerShell v6 | Leave a comment

Stable sort

In Windows PowerShell if you do something like this: PS> (1..20 | Sort-Object -Property {$_ % 3}) -join ‘ ‘ 9 6 12 15 3 18 19 16 13 10 4 1 7 20 17 2 8 11 5 14 … Continue reading

Posted in PowerShell v6 | Leave a comment