Author Archives: richardsiddaway

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

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 | Leave a 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 | 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