Skip to content

Instantly share code, notes, and snippets.

View ServiceDeskCSI's full-sized avatar

CSI Service Desk ServiceDeskCSI

View GitHub Profile
# 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