The dbatools module will have the diagnostic queries pre-installed. Use this only to update to a more recent version or specific versions.
This function is mainly used by Invoke-DbaDiagnosticQuery, but can also be used independently to download the Glenn Berry DMV scripts.
Use this function to pre-download the scripts from a device with an Internet connection.
The function Invoke-DbaDiagnosticQuery will try to download these scripts automatically, but it obviously needs an internet connection to do that.
Downloads the most recent version of all Glenn Berry DMV scripts to the specified location. If Path is not specified, the “My Documents” location will be used.
Save-DbaDiagnosticQueryScript -Path c:\temp