title: Quiet install not running
body: <p>Just wanted to see if anyone had any idea why this won't run in Powershell. It will run without the quiet flag, but won't run with it. Bare with me, I am no scriptwriter.</p>
  <pre><code>Write-Host &quot;Checking Execution policy&quot;
  
  $policy = Get-ExecutionPolicy
  
          if ($policy -ne &quot;Unrestricted&quot;)
  
  {
  
          Set-ExecutionPolicy Unrestricted
  
  }
          Write-Host &quot;Adding ODBC Connection FisFMIS&quot;
  
          # Windows PowerShell example to check 'If File Exists'
              $ChkFile = &quot;C:\Windows\System32\msodbcsql17.dll&quot;
              $FileExists = Test-Path $ChkFile
  
              For ($i=0; $i -lt 10; $i++)
   {
  
                  If ($FileExists -eq $True) 
  
  {
            # Configure Odbc connection for FisFMIS
  
                  Add-OdbcDsn -DriverName &quot;ODBC Driver 17 for SQL Server&quot; -DsnType User -Name fisFMIS -AsJob -SetPropertyValue (&quot;Server=FSC-FMAP-BE01.univ.pitt.edu&quot;, &quot;Trusted_Connection=Yes&quot;, &quot;Database=FISFMIS&quot;)
  }
             # Odbc driver is not installed, install the driver
  
                      Else 
  
               {msiexec.exe /i &quot;\\univ.pitt.edu\fis-dfs\Deploy$\Sources\Software\Jobs\msodbcsql_17.4.2.1_x64.msi&quot; /QN /L*V &quot;C:\msilog.log&quot;
  }
  
                      Start-Sleep -s 100
  
  
  
  
  }
  </code></pre>