We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b90ca commit 32472e8Copy full SHA for 32472e8
Install-DbaSSMS.ps1
@@ -1,4 +1,4 @@
1
-<#
+<#
2
.SYNOPSIS
3
Uses the Microsoft website to get the latest download link for SSMS full install or SSMS upgrade and
4
silently installs it. It WILL KILL SSMS is it is already running
@@ -88,11 +88,14 @@ function Install-DbaSSMS {
88
}
89
#endregion
90
function Start-DbaFileDownload {
91
+ [CmdletBinding(SupportsShouldProcess = $true)]
92
Param(
93
$url,
94
$OutputFile
95
)
- (New-Object System.Net.WebClient).DownloadFile($url, $outputFile)
96
+ if ($PSCmdlet.ShouldProcess("$ENV:COMPUTERNAME", "Downloading file from $url to $outputFile ")) {
97
+ (New-Object System.Net.WebClient).DownloadFile($url, $outputFile)
98
+ }
99
100
101
#region Get the download link
0 commit comments