diff --git a/Vagrant/scripts/install-sysinternals.ps1 b/Vagrant/scripts/install-sysinternals.ps1 index 3caa0358a..da001836a 100755 --- a/Vagrant/scripts/install-sysinternals.ps1 +++ b/Vagrant/scripts/install-sysinternals.ps1 @@ -93,7 +93,9 @@ $Shortcut.TargetPath = $tcpviewPath $Shortcut.Save() # Restart Explorer so the taskbar shortcuts show up -Stop-Process -ProcessName explorer -Force +if (Get-Process -ProcessName explorer -ErrorAction 'silentlycontinue') { + Stop-Process -ProcessName explorer -Force +} # Download Olaf Hartongs Sysmon config Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Downloading Olaf Hartong's Sysmon config..."