• Good morning Michael,

    I've been on Vacation.

    Your solution is very interesting! Never thought of using

    RunCmd """for /f ""tokens=* delims=s"" %f in ('dir /ad " & driveLetr & ":\') do @""sqlcmd.exe"" -S DBHostName -Q ""set nocount on; insert into dbatools.dbo.diskfreeimport values('%f');"""""

    Do you think this could be expanded to also return total space??