PowerShell for Windows Admins:

August, 2019


August 31, 2019  11:43 AM

Pet peeves

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 near the top. In no particular order. Peeve – the use of aliases in...

August 30, 2019  10:39 AM

Foreach-Object -parallel

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 removed in PowerShell...


August 29, 2019  11:25 AM

Testing Windows activation

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell

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...


August 29, 2019  9:21 AM

Get-AdUser in PowerShell Core

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

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 has been fixed...


August 28, 2019  12:06 PM

Windows Terminal v0.4.2382.0

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 whole thing much more usable. I can’t seem to...


August 23, 2019  1:12 PM

Experimental features

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 v6.2.2 instance has the following...


August 21, 2019  12:30 AM

PowerShell v7 preview 3

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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...


August 15, 2019  1:22 PM

Out-GridView is back

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Out-GridView is finally back in PowerShell core - https://devblogs.microsoft.com/powershell/out-gridview-returns/. The project is hosted on github...


August 13, 2019  9:22 AM

PowerShell v2

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
PowerShell 2

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 support finishes 14 January 2020 That’s less than 6...


August 9, 2019  4:24 AM

Test if a transcript is running

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 only have a single transcript running but Windows PowerShell v5.1 and PowerShell v6.x...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: