Looking to cleanup the menubar on deployments and I'd like to have a 'Run once' policy that removes the screen mirroring and input sources icons from the menubar.
I believe the menu item exists in'/System/Library/CoreServices/Menu Extras/Displays.menu' as I can run:
open /System/Library/CoreServices/Menu Extras/Displays.menu
Which adds the icon to the menubar, but I have not found a solution that would allow me to effectively uncheck the display option 'Show mirroring options in the menu bar when available' under Display Settings. Also looking to uncheck the option 'Show input menu in menu bar' located in Keyboard>Input sources.