PowerShell for Windows Admins:

July, 2018


July 24, 2018  5:38 AM

PowerShell ThreadJobs

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 real change is the addition of the...

July 23, 2018  10:18 AM

Update-Help difference

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 I want Update-Help -UICulture...


July 23, 2018  6:31 AM

Measure-Object Enhancement

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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


July 20, 2018  1:17 PM

New releases of PowerShell v6.x

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 Microsoft Security Advisory CVE-2018-8356: .NET Framework...


July 17, 2018  1:17 PM

UK PowerShell conference

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

There’s a one day PowerShell conference in October in London - 0 Comments     RSS Feed     Email a friend


July 11, 2018  8:16 AM

Windows Server 2008 EoL

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Windows 2008, Windows 2008 R2

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 - 0 Comments     RSS Feed     Email a friend


July 9, 2018  10:37 AM

Windows activation

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

enum Licensestatus { Unlicensed = 0 Licensed = 1 OOBGrace = 2 OOTGrace = 3 NonGenuineGrace = 4 Notification = 5 ExtendedGrace = 6 } Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" | select Name, ApplicationId, @{N='LicenseStatus';...


July 9, 2018  4:31 AM

CPU intensive processes

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 display the 10 processes that are running and are using the most CPU...


July 5, 2018  10:43 AM

PowerShell not equal

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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> $a = 'abcd' PS> $b = 'efgh' PS> $a -ne $b True By default PowerShell...


July 4, 2018  5:34 AM

Variable squeezing

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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 Set the variable and display the contents as two separate...


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: