Monthly Archives: August 2019

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 peevishness changes over time but these three will probably be always … Continue reading

Posted in Powershell | Leave a comment

Foreach-Object -parallel

The introduction of Foreach-Object  -parallel in PowerShell v7 preview 3 brings some much needed parallelisation options back into PowerShell. PowerShell workflows are available in Windows PowerShell but are quirky (to be kind) and can be difficult to use. Workflows were … Continue reading

Posted in PowerShell 7 | 1 Comment

Testing Windows activation

Testing Windows activation from PowerShell involves a little dive into CIM (WMI). At its simplest a function like this function test-activation { $ta = Get-CimInstance -ClassName SoftwareLicensingProduct -Filter “PartialProductKey IS NOT NULL” | Where-Object -Property Name -Like “Windows*” if ($ta.LicenseStatus … Continue reading

Posted in PowerShell and CIM | 2 Comments

Get-AdUser in PowerShell Core

There has been a problem with Get-ADUser in PowerShell core such that Get-ADUser -Identity Richard -Properties * Throws an error. The problem is in .NET Core and affects a small number of properties including ProtectedFromAccidentalDeletion The underlying .NET Core issue … Continue reading

Posted in PowerShell 7, PowerShell and Active Directory, PowerShell v6 | Leave a comment

Windows Terminal v0.4.2382.0

Windows Terminal v0.4.2382.0 has ben released to the Microsoft store. if you have Windows Terminal installed it should automatically update for you. Copying out of a window using the keyboard shortcuts now works – thank you – that makes the … Continue reading

Posted in Powershell | Leave a comment

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 be a breaking change or about which the PowerShell team want feedback before finalising the code. My PowerShell … Continue reading

Posted in PowerShell 7, PowerShell v6 | Leave a comment

PowerShell v7 preview 3

PowerShell v7 preview 3 is now available from https://github.com/PowerShell/PowerShell/releases Breaking changes seem to be confined to non-Windows platforms with the removal of the kill alias on Stop-Process and support for pwsh as a login shell The big new item is … Continue reading

Posted in PowerShell 7 | Leave a comment

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 – https://github.com/powershell/GraphicalTools Install the module from the gallery – PS> Install-Module -Name Microsoft.PowerShell.GraphicalTools Currently, Out-GridView is the only command in the module though adding Show-Command … Continue reading

Posted in PowerShell 7, PowerShell v6 | 1 Comment

PowerShell v2

Just seen a question about PowerShell v2. PowerShell v2 was a huge step forward when it appeared in October 2009 as part of Windows 7 / Server 2008 R2 Windows 7 support finishes 14 January 2020 Windows Server 2008 R2 … Continue reading

Posted in PowerShell V2 | 3 Comments

Test if a transcript is running

PowerShell has the ability to create a transcript of the commands you run at the console and the results displayed in the console. But how can you test if a transcript is running? It used to be that you could … Continue reading

Posted in Powershell | 3 Comments