Ran the script and it throws a truckload of errors:
[PS] C:\>.\Reset-ScanEngineVersion.ps1
BITZER Stopping services...
BITZER Removing Microsoft engine folder...
Remove-Item : Cannot remove item C:\Program Files\Microsoft\Exchange Server\V15\FIP-FS\Data\Engines\amd64\Microsoft\Pac
kage\Staging\BIT84BE.tmp: The process cannot access the file 'BIT84BE.tmp' because it is being used by another process.
At C:\Reset-ScanEngineVersion.ps1:54 char:17
+ Remove-Item -Recurse -Force $microsoftFolder
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (BIT84BE.tmp:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Program Files\Microsoft\Exchange Server\V15\FIP-FS\Data\Engines\amd64\Microsoft\Pac
kage\Staging: The directory is not empty.
At C:\Reset-ScanEngineVersion.ps1:54 char:17
+ Remove-Item -Recurse -Force $microsoftFolder
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Staging:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Program Files\Microsoft\Exchange Server\V15\FIP-FS\Data\Engines\amd64\Microsoft\Pac
kage: The directory is not empty.
At C:\Reset-ScanEngineVersion.ps1:54 char:17
+ Remove-Item -Recurse -Force $microsoftFolder
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Package:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Program Files\Microsoft\Exchange Server\V15\FIP-FS\Data\Engines\amd64\Microsoft: Th
e directory is not empty.
At C:\Reset-ScanEngineVersion.ps1:54 char:17
+ Remove-Item -Recurse -Force $microsoftFolder
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Program File...amd64\Microsoft:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
BITZER Emptying metadata folder...
BITZER Starting services...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Exchange Transport (MSExchangeTransport)' to start...
WARNING: Waiting for service 'Microsoft Exchange Transport (MSExchangeTransport)' to start...
BITZER Starting engine update...
Running as KB\administrator.
Aborted the script and performed the manual solution. Which seems to work ok, but at the end, the UpdateVersion is 2201010009 and UpdateStatus is UpdateAttemptFailed
So now what?
Update:
It seems like BITS is prohibiting the deletion of files. After stopping BITS, the files in question could be removed. After performing the manual steps again, the UpdateStatus is InProgress for a looong time. Checked back after an hour and then the version was OK. Things run fine again.