dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


This function creates an extensive debugging package that can help with reproducing and fixing issues.

The file will be created on the desktop by default and will contain quite a bit of information:
– OS Information
– Hardware Information (CPU, Ram, things like that)
– .NET Information
– PowerShell Information
– Your input history
– The In-Memory message log
– The In-Memory error log
– Screenshot of the console buffer (Basically, everything written in your current console, even if you have to scroll upwards to see it.




Creates a large support pack in order to help us troubleshoot stuff.



This command was created by Friedrich Weinmann. You can find Fred on blogging at allthingspowershell.blogspot.de and Tweeting at @FredWeinmann


From PowerShell, execute Get-Help New-DbatoolsSupportPackage -Detailed for more information on this function.

Source Code

Want to see the source code? View New-DbatoolsSupportPackage.ps1 on GitHub

Related commands