Category Archives: PowerShell v5

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

PowerShell version

Discovering the PowerShell version you’re using can be an interesting task. The automatic variable $PSVersionTable was introduced in PowerShell v2.  On my Windows 10 version 1803 machine for Windows PowerShell I get PS> $PSVersionTable Name                           Value —-                           —– PSVersion                      5.1.17134.48 … Continue reading

Posted in PowerShell v5, PowerShell v6 | Leave a comment

Controlled zip

Powershell v5 introduced the Compress- and Expand-Archive cmdlets which enabled you to manage compressed archives. I had a question about how you could control adding files to archives using a CSV file. This is how you do a controlled zip. … Continue reading

Posted in PowerShell v5 | Leave a comment

Clear-RecycleBin

Every so often I find a new cmdlet in PowerShell. This was the case with Clear-RecycleBin that I’ve just found. It appears to have been introduced with PowerShell 5.0 BUT isn’t available in PowerShell 6.0 With pretty simple syntax PS> … Continue reading

Posted in PowerShell v5 | 1 Comment

Updating built in modules

Windows 10 and Server 2016 automatically install a module called Pester which is used for testing code. Its the foundation of Test Driven Development or Behaviour Driven Development using PowerShell. The version  installed by default is 3.4.0. Pester is originally … Continue reading

Posted in PowerShell v5, Windows 10, Windows Server 2016 | Leave a comment

PowerShell classes

I’ve just had an article on PowerShell classes published on the UK TechNet bog – https://blogs.technet.microsoft.com/uktechnet/2016/09/29/powershell-classes/

Posted in PowerShell v5 | Leave a comment

Update-Help errors

One the latest build of Windows 10 – 14296 I’m getting errors when updating help. Three modules do’t seem to have help available Update-Help : Failed to update Help for the module(s) ‘Microsoft.PowerShell.Operation.Validation’with UI culture(s) {en-GB} : The value of … Continue reading

Posted in PowerShell v5 | Leave a comment