So I have created a python script, now in a custom toolbox and I want to add this to a huge list of ArcGIS Projects (v. 3.0). Is there any way I can automate this, maybe through python? I would want to point a script at the windows folder containing the 100+ .aprx and get a script to run through all these projects and add the toolbox to the project for all .aprx within the folder.
I see there are commands such as ImportToolbox and AddToolbox but looks like these are to add your custom toolboxes into your python environment rather than save it into your Project?
For a bit more context, we run an ArcGIS Enterprise site and have many different Pro projects used for publishing all our services. I've created this python script which will make dated .mapx backups of our projects which I'd like people to start running before they make changes to the projects. Ideally I want to upload this toolbox into all of our existing projects so it's just there in the Catalogue Window ready for people to run, rather than everyone having to add it in themselves manually. I can add it to our template that we use for new Projects, but it’s getting into the mass of existing projects I’m struggling with.
I had a look at this, but wasn't sure if it would do what I wanted (I've made a toolbox rather than a python toolbox), we also do not have access to the C Drive for me to be able to add new tools there.
https://support.esri.com/en-us/knowledge-base/how-to-create-and-store-a-custom-python-system-toolbox--000013549
Or I've seen this example of adding a custom toolbox to a new ribbon, so this could be an option too if it can be saved into all the projects? https://gis.stackexchange.com/questions/468634/how-to-add-a-custom-tool-to-arcgis-pro-tab-ribbon