Disclaimers (use at your own risk etc) and notes on how to use the scripts are as per previous post.
Here is the note from Thomas:
Hi Luke, I have used your script from https://wrw.is/script-to-disable-all-revit-addins/ and I have adjusted it a bit. I have local users without admin rights (training center computers), so I go to the users computer, open the file with rightclick > Powershell and the Admin login is shown. I got also some problems with the allusersprofile and the appdata path variable, because as soon as I login as admin, the appdata path is not anymore the user path. Thus I have changed it to the path itself. The last 2 lines help to see the errors.
Thanks for your script, it helped me a lot! My scripts are attached if you want to use it on your blog =)
Thanks to Thomas Vogt for sharing his work on this!