April 24, 2013

Subscribe

Get Sql Server Log File Free Space via Powershell

by Scott Newman

Quick script (I think I start off all my posts with those two words) on how to get the free space of your transaction log file (along with other information about the files) with powershell. Useful if you manually grow your log files (like we all should do, but most probably don’t [myself included]). As always, this uses SQLPSX. One of these days I’ll convert to SQLPS.