The Surly Admin

Father, husband, IT Pro, cancer survivor

SQL Backups Report

This is a simple report to tell you the status of your SQL Server backups.

Continue reading

Advertisements

June 8, 2015 Posted by | MS SQL, PowerShell | , | 11 Comments

Read Text Files Faster than Get-Content

This was a fun little script I threw together after a particular conversation came up at Spiceworks.  If you’ve worked with PowerShell long you’ve used Get-Content to read a file.  99% of the time, it’s fine and you just continue on with life.  This blog post is about that 1% when Get-Content is SLOW.  The .NET IO.Streamreader is where people turn to speed things up so I decided to create a  function around it that worked much like Get-Content does.  This is it’s story.

Continue reading

June 1, 2015 Posted by | Powershell - Performance | , , , | Leave a comment