Monthly Archives: October 2019

Resolve-Path

Resolve-Path is a cmdlet I haven’t used much – if at all – so I thought I should have a look at it. At an arbitrary point in the file system: PS> Get-Location Path —- C:\Scripts\Modules\Coordinates .. Indicates the next … Continue reading

Posted in Powershell | 1 Comment

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, no-one really knew what I meant. Ad hoc development is a concept more than a development type. … Continue reading

Posted in Powershell | 2 Comments

Pipeline Chain operators

Another experimental feature from PowerShell v7 preview 5 brings pipeline chain operators to PowerShell. PS> Get-ExperimentalFeature -Name PSPipelineChainOperators | Format-List Name, Description Name        : PSPipelineChainOperators Description : Allow use of && and || as operators between pipeline invocations The operators … Continue reading

Posted in PowerShell 7 | Leave a comment

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 displays detailed information about ErrorRecords included nested objects Enable the feature: PS> Enable-ExperimentalFeature -Name Microsoft.PowerShell.Utility.PSGetError WARNING: Enabling and … Continue reading

Posted in PowerShell 7 | Leave a comment

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 cmdlets: Get-Counter Update-List Clear-RecycleBin Out-Printer All but Update-List are Windows only as far as I can ell

Posted in PowerShell 7 | Leave a comment

Error view

Error view is another experimental feature introduced with PowerShell v7 preveiw 5. The experimental feature needs to be enabled  and PowerShell restarted. PS> Enable-ExperimentalFeature -Name PSErrorView WARNING: Enabling and disabling experimental features do not take effect until next start of … Continue reading

Posted in PowerShell 7 | Leave a comment

Test-Connection

In PowerShell v7 preview Test-Connection sees some improvements: PS> Test-Connection -TargetName 127.0.0.1 | Format-List Source      : W510W10 Destination : 127.0.0.1 Replies     : {System.Net.NetworkInformation.PingReply, System.Net.NetworkInformation.PingReply,               System.Net.NetworkInformation.PingReply, System.Net.NetworkInformation.PingReply} The progress bar has been removed as has the unrequired text displayed with each … Continue reading

Posted in PowerShell 7 | Leave a comment

Null coalescing with Object properties

The Null coalescing operators were introduced in PowerShell v7 preview 5. last time you saw how to use Null coalescing with variables. You can also use Null coalescing with Object properties. Let’s first create an object. PS> $prop = @{Nullprop … Continue reading

Posted in PowerShell 7 | Leave a comment

Null coalescing operators

Powershell v7 preview 5 introduces a new experimental feature that supports Null coalescing operators and null coalescing assignment operstors. As its an experimental feature: PS> Get-ExperimentalFeature -Name PSCoalescingOperators | Format-List Name        : PSCoalescingOperators Enabled     : False Source      : PSEngine Description … Continue reading

Posted in PowerShell 7 | Leave a comment

PowerShell v7 preview 5 experimental features

PowerShell v7 preview 5 has a number of new, and some modified experimental features. The full list of PowerShell v7 preview 5 experimental features is: PSCoalescingOperators  – –  Support the null coalescing operator and null coalescing assignment operator in PowerShell … Continue reading

Posted in PowerShell 7 | Leave a comment