Category Archives: Powershell

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

Office holidays

Office holidays are a great thing. They usually occur on public holidays. There’s a web site – http://www.officeholidays.com – you can use to discover the public holidays in your country. 133 countries are available – http://www.officeholidays.com/countries/index.php. You can also use … Continue reading

Posted in Powershell | Leave a comment

Variable as a where clause

A post on the forum about using a variable as a where clause looked interesting. What the user wanted to do was to define a variable that contained the filter to be used by Where-Object. As an example consider filtering … Continue reading

Posted in Powershell | Leave a comment

File name starting with space

Interesting question on the forum regarding finding files with a file name starting with a space. First problem was creating some files to match the criteria. Renaming in file explorer didn’t work so back to PowerShell PS> Rename-Item -Path C:\test\file1.txt … Continue reading

Posted in Powershell | Leave a comment

Topics for PowerShell Summit 2018

The planning for Summit 2018 has started – to be honest it started before Summit 2017 opened. We’ve reached the stage where we need to start thinking about the broad topics for PowerShell Summit 2018. What do you want to … Continue reading

Posted in Powershell, Summit | 3 Comments

MVP 2017

I received the email this afternoon stating I’d received an MVP award for 2017-2018 for my work with PowerShell. This is the 10th consecutive year I’ve been honoured with an MVP award. Its as big an honour to receive the … Continue reading

Posted in Powershell | Leave a comment