Skip to content

Commit

Permalink
Verify explorer.exe is running it before stopping it
Browse files Browse the repository at this point in the history
Issue clong#578
  • Loading branch information
clong authored Dec 21, 2020
1 parent 1a4509c commit cad9c0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Vagrant/scripts/install-sysinternals.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit cad9c0e

Please sign in to comment.