PowerShell for IT Professionals [#18] – Working with text strings

Although PowerShell treats everything as object - including text strings - working with text might be particularly difficult - at least when first approached. In this lesson we are going to have a closer look at what is possible with built in text methods and see how these can help us e.g. by extracting a substring of text. PowerShell can also be great at parsing log files - we will use Select-String to quickly filter out the lines of text with the phrase we are looking for e....

3 November 2020 · 2 min · 395 words · Kamil

Restarting VSS Writers with PowerShell script

VSS Writers are responsible for backups – if they stop working, then backups might fail. The solution to that is restarting VSS Writers, but the problem here is that there are many, and at least out of the box, there’s no mechanism to make this automatic… but there’s PowerShell. I’m not interested in your code, I just want to restart these VSS Writers In that case, head on to: mygithub, use the code and run:...

1 December 2019 · 4 min · 737 words · Kamil