Category Archives: PowerShell 7

Get-Hotfix

Get-Hotfix returns to PowerShell in PowerShell v7 preview 5 – at least on Windows. PS> Get-Command Get-HotFix -Syntax Get-HotFix [[-Id] <string[]>] [-ComputerName <string[]>] [-Credential <pscredential>] [<CommonParameters>] Get-HotFix [-Description <string[]>] [-ComputerName <string[]>] [-Credential <pscredential>] [<CommonParameters>] It still uses the Win32_QuickFixEngineering CIM … Continue reading

Posted in PowerShell 7 | Leave a comment

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