Converted into a module: https://github.com/tcartwright/tcdbtools PS Gallery link: https://www.powershellgallery.com/packages/tcdbtools/ https://github.com/tcartwright/tcdbtools/blob/main/tcdbtools/sql/FindInvalidSettings.sql