Category Archives: PowerShell 7

PowerShell v7 Release Candidate 1

PowerShell v7 Release Candidate 1 is here.  No major new features. The following features have moved out of being experimental: PSCoalescingOperators PSErrorView PSForEachObjectParallel PSPipelineChainOperators PSTernaryOperator PSUpdatesNotification This release should be more or less what we get when PowerShell v7 move … Continue reading

Posted in PowerShell 7 | Leave a comment

Get-Counter

The Get-Counter cmdlet returns in PowerShell v7 preview 6. Its only Get-Counter though the Import/Export-Counter cmdlets aren’t available. Get-Counter isn’t experimental feature so its available as soon as you install preview 6. PS> Get-Command Get-Counter -Syntax Get-Counter [[-Counter] <string[]>] [-SampleInterval … Continue reading

Posted in PowerShell 7 | Leave a comment

Clipboard cmdlets

The clipboard cmdlets return in PowerShell v7 preview 6 Get-Clipboard and Set-Clipboard are back and according to the release notes work cross platform. PS> Get-Command Get-Clipboard -Syntax Get-Clipboard [-Raw] [<CommonParameters>] PS> Get-Clipboard Clipboard test The Raw parameter makes Get-Clipboard ignore … Continue reading

Posted in PowerShell 7 | Leave a comment

Clear-RecycleBin

The Clear-RecycleBin cmdlet returns in PowerShell v7 preview 6 on Windows PS> Get-Command Clear-RecycleBin -Syntax                                                                                Clear-RecycleBin [[-DriveLetter] <string[]>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>] To use PS> Clear-RecycleBin Will ask for confirmation you want to perform the action PS> Clear-RecycleBin -Force or … Continue reading

Posted in PowerShell 7 | Leave a comment

PowerShell v7 preview 6

PowerShell v7 preview 6 has arrived – https://github.com/PowerShell/PowerShell/releases Its the last preview, as the Release candidate should appear next month, so this version is a good indication of what’ll be available in PowerShell v7. Test-Connection finally works properly and is … Continue reading

Posted in PowerShell 7 | Leave a comment

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