Hi!
I’m facing a lot of problems patching Chrome. If Chrome is running, then it won’t patch, and if user don’t close it in a lot of days the same. So at the end, it takes too much time for applying the patch.
I want to run a simple worklet to stop Chrome process:
EVALUATION
$chrome=Get-Process -Name "chrome" -ErrorAction SilentlyContinue
function checkChrome {
if ($chrome.si -ne 0) {exit 1}
else {exit 0}
}
checkChromeREMEDIATION
Stop-Process -Name "chrome" -ErrorAction SilentlyContinue
Start-Process -FilePath "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -WorkingDirectory "C:\Program Files (x86)\Google\Chrome\Application"As you see, it just checks if Chrome is running and then it stop the process and starts it. Doing this on localhost works, running from Automox nothing happends.
Any ideas?
Thanks
This discussion is archived and closed to replies. Continue it in the Automox Community Slack.
Discuss on Slack