Both Monterey and Big Sur macOS may stall showing a stuck progress bar.
This failure is sometimes caused by the number of SpotLight files on the device. Addigy has published several Community Facts to report on the status of these files and a script to remove these files.
To check the number of files on your devices, you may add the following Community Device Facts to you Policies that have devices you wish to upgrade to Big Sur or Monterey.
1. Navigate to Community -> Device Facts
Add Spotlight Files Health and Spotlight Files Count to your organization.
Spotlight Files Count - String Device Fact - Prints count of files in the two names directories
Spotlight Files Health - Boolean Device Fact - Prints True (Green Check in UI) if under 20000 files counted or False (Red X in UI) if >= 20000 files
2. Navigate to Community -> Scripts
Add Remove Spotlight Files to your environment.
Remove Spotlight Files - Script - The two remove commands behind a condition check for >= 20000 files. When copying scripts you have the ability to edit the minimum files required to execute the delete or just use the remove commands if wanted.