This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define Adobe Acrobat process name and install path | |
$acrobatProcess = "Acrobat.exe" | |
$installPath = "C:\Program Files\Adobe\Acrobat DC\Acrobat" | |
# Close Adobe Acrobat if it's running | |
$acrobat = Get-Process -Name $acrobatProcess -ErrorAction SilentlyContinue | |
if ($acrobat) { | |
Write-Host "Closing Adobe Acrobat..." | |
Stop-Process -Name $acrobatProcess -Force | |
Start-Sleep -Seconds 3 |