Category Archives: PowerShell v5

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

Unregistering the default repository–PS version dependent?

In this post – https://richardspowershellblog.wordpress.com/2016/09/17/powershell-repositories/ – I stated that you could unregister the default PowerShell repository. I also said that the statement in the documentation for Unregister-PSrepository that you couldn’t unregister PSGallery was incorrect. A couple of readers have left … Continue reading

Posted in PowerShell v5 | 4 Comments

PowerShell repositories

A reader on my blog asked if you can unregister the default PowerShell repository so you just use an internal repository. First off – PSGallery is the default repository PS> Get-PSRepository | Format-List Name                      : PSGallerySourceLocation            : https://www.powershellgallery.com/api/v2/Trusted                   : FalseRegistered                … Continue reading

Posted in PowerShell v5 | 3 Comments

PowerShell is Open Sourced

For those of you that have been at PowerShell events over the last few years you’ll have heard Jeffrey Snover state that he wanted to take PowerShell to other platforms. Now its happened Jeffrey has announced that an ALPHA release … Continue reading

Posted in PowerShell v5 | Leave a comment

.psd1 files

.psd1 files are usually used as module manifests You can test the manifest PS>  Test-ModuleManifest -Path ‘C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0\Pester.psd1’ | fl Name              : PesterPath              : C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0\Pester.psd1Description       : Pester provides a framework for running BDD style Tests to execute and validate … Continue reading

Posted in PowerShell v5 | Leave a comment