![Excel add ins registry](https://kumkoniak.com/18.jpg)
![excel add ins registry excel add ins registry](https://i.stack.imgur.com/5r0CI.jpg)
In Intune, you have multiple choices to deploy a script, for example create an. Now that the script is ready, all we need to do is deploy it via Intune. The code for the script is: function Check-FileOpen Write-Host "File Not in Use" $test | export-csv -Path C:\Users\YOURUSER\Desktop\test.csv -NoTypeInformation -Appendĭon’t forget to modify the location where the script is saved and where the script checks if it’s opened/in use or not. The script checks all Office registry keys to gather the add-ins, and also has a check to see if the CSV is currently in use by another user (because multiple users will write at the same time in this file). The CSV is stored on a network share that is accessible to everybody.
![excel add ins registry excel add ins registry](https://ask.salemstate.edu/sites/ask/files/import/090180205687283.png)
With this in mind, as we did with SCCM, we must first create a PowerShell script which gets all the Office Add-ins and writes them in a CSV. As mentioned, there are multiple ways in which you can achieve this so don’t take this article as the only way. In a previous article, we had a look on how to get your office add-ins from the infrastructure by using SCCM and PowerShell.
![Excel add ins registry](https://kumkoniak.com/18.jpg)