Skip to content

Commit 1b757e8

Browse files
added RunAs to avoid UAC
1 parent 5291acf commit 1b757e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Install-DbaSSMS.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function Install-DbaSSMS {
177177

178178
if ($PSCmdlet.ShouldProcess("$ENV:COMPUTERNAME", "Installing SSMS on ")) {
179179
try {
180-
Start-Process -FilePath $InstallFile -ArgumentList "/install /quiet /norestart" -Wait
180+
Start-Process -FilePath $InstallFile -ArgumentList "/install /quiet /norestart" -Wait -Verb RunAs
181181
$pscmdlet.WriteVerbose("SSMS installed or upgraded")
182182
}
183183
catch {

0 commit comments

Comments
 (0)