Category Archives: Powershell

PowerShell string concatenation

Strings –  a list of characters such as ‘abcd’ – are a common feature of programming or scripting. Sometimes you need to join – concatenate – two or more strings together. This is how PowerShell string concatenation works. First you … Continue reading

Posted in Powershell | Leave a comment

PowerShell operators

PowerShell has operators – lots of operators. So many operators that it took us TWO chapters to work through them all in PowerShell in Action, third edition – https://www.manning.com/books/windows-powershell-in-action-third-edition. Here’s how you can discover the PowerShell operators. PS> Get-Help about*operator* … Continue reading

Posted in Powershell | Leave a comment

PowerShell substrings

PowerShell is all about working with objects but you often have to drop to a lower level and work with properties and their values. Many objects have properties that are strings – a string is one of the standard PowerShell … Continue reading

Posted in Powershell | Leave a comment

PowerShell Summit 2018: Call for topics

The call for topics for the PowerShell and DevOps Summit 2018 is now open – https://powershell.org/2017/08/01/76318/ We’re looking for sessions (45 or 105 minute) that span the whole range of PowerShell usage and knowledge PLUS sessions on DevOps  practices. This … Continue reading

Posted in Powershell, Summit | Leave a comment

PowerShell documentation

The home of Microsoft’s PowerShell documentation is changing from MSDN to https://docs.microsoft.com The PowerShell documentation is currently opened sourced at https://github.com/powershell/powershell-docs This change makes accessing the documentation easier

Posted in Powershell | 1 Comment

Unblock and rename files

I have a bunch of files that I’ve downloaded to a specific folder. I need to unblock and rename files in that folder. The rename involves replacing a plus sign with a space. $path = ‘C:\Users\Richard\Downloads\Walks’ $files = Get-ChildItem -Path … Continue reading

Posted in Powershell | Leave a comment

Control split output

In this post I’ll show you show to control split output – that is control the number of strings that are returned. If you use –split with just a delimiter you’ll get a split occurring at every occurrence of the … Continue reading

Posted in Powershell | Leave a comment