RSiddaway

Ad hoc development

I was having a discussion about how people can learn PowerShell at the recent UK PowerShell day and mentioned ad hoc development. Surprisingly,...

read more

Get-Error

One of the experimental features new PowerShell v7 preview 5 is the Get-Error cmdlet. The features description states: Enable Get-Error cmdlet that...

read more

Returning cmdlets

If I’m interpreting the email updates coming from the PowerShell project the next code release of PowerShell v7 should see the following returning...

read more

Error view

Error view is another experimental feature introduced with PowerShell v7 preveiw 5. The experimental feature needs to be enabled and PowerShell...

read more

Test-Connection

In PowerShell v7 preview Test-Connection sees some improvements: PS> Test-Connection -TargetName 127.0.0.1 | Format-List Source : W510W10...

read more

Hidden files

If you suspect there are hidden files in a folder you can use the Attributes parameter to discover them: PS> Get-ChildItem -Path c:test...

read more

Ternary operator

PowerShell v7 preview 4 adds a Ternary operator to PowerShell. A ternary operator is a way to provide shortened coding for a simple if-else block....

read more

Get-ExecutionPolicy

I’ve used Get-ExecutionPolicy since PowerShell v1 and never stopped to think about it. The cmdlet normally returns just the current policy PS>...

read more

PowerShell v6.2.3

PowerShell v6.2.3 is available from https://github.com/PowerShell/PowerShell/releases It fixes a debugging performance issue and updates the .NET...

read more

Hyper-V VM IP address

Saw a question about getting the Hyper-V VM IP address. One thing with Hyper-V is that the VM has to be running for you to retrieve the IP address....

read more

Pet peeves

Back in July I mentioned the using ? instead of Where-Object was a pet peeve. I’ve been asked a few times since for other pet peeves. The order of...

read more

Experimental features

PowerShell core has recently. v6.2, had the concept of experimental features added. An experimental feature is new or changed functionality that may...

read more

Out-GridView is back

Out-GridView is finally back in PowerShell core - https://devblogs.microsoft.com/powershell/out-gridview-returns/ . The project is hosted on github...

read more