msfreaks / EvergreenAdmx

Script to keep Admx files up-to-date.
MIT License
110 stars 14 forks source link

Error if OneDrive is not running, Script Stops #11

Closed Vexxer1 closed 2 years ago

Vexxer1 commented 2 years ago

I've noticed, running this script on a Server 2019 it stops after the OneDrive Setup. For some reason, Onedrive.exe is not launched for me. Then the Stop-Process at line 816 will also fail and stop the script.

My very simple fix would be: Stop-Process -Name "OneDrive" -Force -ErrorAction SilentlyContinue

Of course a get-process ... | stop-process would be nicer.

msfreaks commented 2 years ago

Added to new version which will be released shortly.