Monthly Archives: July 2018

PowerShell ThreadJobs

PowerShell Jobs were introduced in PowerShell v2. While remoting got the attention in that release PowerShell Jobs are at least as important. PowerShell v6.1 preview 4 has introduced a new addition to the options for jobs – PowerShell ThreadJobs. The … Continue reading

Posted in PowerShell v6 | Leave a comment

Update-Help difference

Between Windows PowerShell v5.1 and PowerShell v6.x I’ve noticed an Update-Help difference. In Windows PowerShell v5.1 I can just do this: Update-Help  -Force from an elevated prompt. In PowerShell v6.0 and V6.1 previews I have to give the UI culture … Continue reading

Posted in PowerShell v5, PowerShell v6 | 2 Comments

Measure-Object Enhancement

PowerShell v6.1 preview 4 brings a Measure-Object enhancement. Measure-Object has been around since PowerShell v1. It enables you to measure the properties of an object and easily perform a number of calculations. PS>  Get-ChildItem -File | Measure-Object -Property Length Count             … Continue reading

Posted in PowerShell v6 | Leave a comment

New releases of PowerShell v6.x

New releases of PowerShell v6.x are available. First off v6.0.3 is available. This is a servicing release to update PowerShell v6.0 to use .Net 2.0.8. The primary point of this release is to update to fix the vulnerability discussed in … Continue reading

Posted in PowerShell v6 | Leave a comment

UK PowerShell conference

There’s a one day PowerShell conference in October in London – https://powershell.org/2018/07/17/psdayuk-2018-the-uk-powershell-conference/ It’s rumoured I may be there and speaking

Posted in Powershell | Leave a comment

Windows Server 2008 EoL

Windows Server 2008 EoL on 14 January 2020 Windows Server 2008 and 2008 R2 will be end of life and no longer supported from 14 January 2020 – https://cloudblogs.microsoft.com/windowsserver/2018/07/10/its-sunset-time-for-windows-server-2008-and-2008-r2/ There’s plenty of time to think about migrating off of the … Continue reading

Posted in Windows Server 2008, Windows Server 2008 R2 | Leave a comment

Windows activation

Windows activation is usually straight forward. Put in the license key during installation, ensure the machine can connect to the Internet and wait a bit. Windows is activated. Except today I was rebuilding some VMs and the activation didn’t work. … Continue reading

Posted in Powershell | Leave a comment

CPU intensive processes

How do you find the most CPU intensive processes? If you want to know the processes that are taking most CPU on your system right now then use Get-Process PS> Get-Process | sort CPU -Descending | select -First 10 Will … Continue reading

Posted in Powershell | Leave a comment

PowerShell not equal

The Powershell not equal operator is –ne. This how you use it. When dealing with numbers: PS> $a = 3 PS> $b = 5 PS> $a -ne $b True When dealing with strings you have a bit more choice: PS> … Continue reading

Posted in Powershell | Leave a comment

Variable squeezing

When you’re developing code interactively how often do you set a variable and then display it to test the result? You can do that in one go using variable squeezing. Normally you’d do: PS> $test = 1 PS> $test 1 … Continue reading

Posted in Powershell | 3 Comments