I created a policy which executes the following command
'/Applications/Install macOS Monterey.app/Contents/Resources/startosinstall' --agreetolicense --nointeraction --forcequitapps
via the Files and Processes --> Execute Command field on Macs which are capable of Monterey and do have the installer downloaded.
Although the command is correct AND the Macs did the upgrade the logged result of the command is:
/bin/sh: /Applications/Install macOS Monterey.app/Contents/Resources/startosinstall: No such file or directory
Does anybody have an idea why?
It is misleading that the log shows "No such file or directory" although the command is run properly.