diff --git a/source/Public/Save-SqlDscSqlServerMedia.ps1 b/source/Public/Save-SqlDscSqlServerMedia.ps1 index f9114cac0..2e283988d 100644 --- a/source/Public/Save-SqlDscSqlServerMedia.ps1 +++ b/source/Public/Save-SqlDscSqlServerMedia.ps1 @@ -120,11 +120,6 @@ function Save-SqlDscSqlServerMedia Write-Verbose -Message "Downloading SQL Server media to '$destinationFilePath'" - # TODO: Add a timer to measure the time taken to download the media file. - $connectTimer = [System.Diagnostics.StopWatch]::StartNew() - $connectTimer.Elapsed.TotalSeconds - $connectTimer.Stop() - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $isExecutable = $false @@ -220,7 +215,5 @@ function Save-SqlDscSqlServerMedia Rename-Item -Path $isoFile.FullName -NewName $FileName -Force } - Write-Verbose -Message "Finished downloading the SQL Server media iso at $(Get-Date -Format 'yyyy-MM-dd hh:mm:ss')" - return (Get-Item -Path $destinationFilePath) }