Tag Archives: Get-Children

PowerShell to Remove Old SQL Error Logs

28 Feb


In a previous article article, I wrote about how to find out where the SQL Server error log is located. That particular article was in case your server instance did not start and you needed more information.

If your SQL Server instance is working, there is another way to find the location of the error logs – with a SQL query, which can then be used within PowerShell.

Continue reading