Server 2016 (and likely others) ship with an anti-malware executable called MsMpEng.exe. This executable nearly deadlocks (picture) the server when scoop packages are being installed. The anti-malware service greatly lengthens install times and seems to cause file-locking on occasion (picture), potentially breaking the package install state.
To reproduce:
- Download an install the Server 2016 Core Evaluation ISO from Microsoft
- Install scoop from front-page install instructions
scoop install git
Edited: Whitelisting the ~/scoop directory is a valid workaround.
Set-MpPreference -ExclusionPath "$(Resolve-Path '~/scoop')"