Monthly Archives: December 2017

PowerShell in 2018

So what is going to happen for PowerShell in 2018? In April we have the Summit. Our biggest ever Summit with many more speakers, more sessions and new things including Iron Scripter. We’ll be starting the build up in early … Continue reading

Posted in Powershell | Leave a comment

Cross platform PowerShell remoting

An interesting article on the Scripting Guy blog – https://blogs.technet.microsoft.com/heyscriptingguy/2017/12/29/cross-platform-powershell-remoting-in-action/ discusses using SSH remoting in PowerShell v6. Some of the code needs tightening up but its a good first step for combining v6 and v5.1

Posted in Powershell | Leave a comment

2017 – a year of PowerShell

This is a good time to review what happened in the PowerShell community in 2017. It’s my perspective so is obviously biased based on my experiences. The 2017 PowerShell Summit was an early highlight of the year. We sold out … Continue reading

Posted in Powershell | Leave a comment

Windows Updates CIM classes

When Windows 10 and Server 2016 were released they contained a new CIM namespace – ROOT/Microsoft/Windows/WindowsUpdate This contained a CIM class MSFT_WUOperationsSession that had 2 very useful methods – ScanForUpdates and  ApplyApplicableUpdates. These methods enabled you to find and install … Continue reading

Posted in PowerShell and CIM, WSUS | 1 Comment

Test-Path -PathType

Test-Path is a useful cmdlet for testing the validity of a path. You get a True/False return depending on if the path exists or not. There’s also a way to add to the test by determining if the path points … Continue reading

Posted in Powershell | 1 Comment

PowerShell v6: #9 Release candidate 2 features

A couple of features of PowerShell v6 release candidate 2 need commenting on. Firstly, I was surprised when installing RC 2 on a Windows 10 machine (Insider build) that RC1 was removed. In the past you’ve been able to run … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6: #8 Release candidate 2

Release candidate 2 for PowerShell v6 is available for download from – https://github.com/PowerShell/PowerShell/releases One worrying point is the the OpenSSH implementation which is required for remoting to and from Linux systems doesn’t appear to be any where near a release … Continue reading

Posted in PowerShell v6 | 2 Comments

Using the Where method

You don’t usually see people using the where method. A recent question on the forums highlighted using the where method. PowerShell deals in collections and will automatically create a collection of objects if the are multiple objects returned for instance … Continue reading

Posted in PowerShell v6 | 2 Comments

Avoid the truncation in the display

A question came up regarding my recent post about using the file system COM object to get folder sizes. The question was about the folder path and how you could see the whole path. In other words how to avoid … Continue reading

Posted in Powershell | 1 Comment

PowerShell v6: #7 Module paths

There is a very significant gap between the functionality available in PowerShell v6 as opposed to PowerShell v5.1. In part this is due to the underlying version of .NET but mainly to the defined module paths in the two versions. … Continue reading

Posted in PowerShell v6 | 2 Comments