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

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