After we install an Office Add-In on a PC, it doesn’t enable itself in excel by default as an active add-in. I’d like to do this via PowerShell if possible so thousands of users don’t have to manually do it. This is the closest thing I’ve found that would seem to work, but it doesn’t:<\/p>\n
$xl=New-Object -ComObject excel.application
\n$xl.Application.COMAddIns | ?{$.Description -eq ‘Azure DevOps Add-in’} |%{$.Connect=$true}
\n$xl.Quit()
\nexit<\/p>\n
Has anyone had any experience doing something like this. I’ve tried to manually change the start behavior in the registry and that doesn’t work at all.<\/p>","upvoteCount":1,"answerCount":6,"datePublished":"2021-05-14T20:03:42.000Z","author":{"@type":"Person","name":"net1994","url":"https://community.spiceworks.com/u/net1994"},"suggestedAnswer":[{"@type":"Answer","text":"
After we install an Office Add-In on a PC, it doesn’t enable itself in excel by default as an active add-in. I’d like to do this via PowerShell if possible so thousands of users don’t have to manually do it. This is the closest thing I’ve found that would seem to work, but it doesn’t:<\/p>\n
$xl=New-Object -ComObject excel.application
\n$xl.Application.COMAddIns | ?{$.Description -eq ‘Azure DevOps Add-in’} |%{$.Connect=$true}
\n$xl.Quit()
\nexit<\/p>\n
Has anyone had any experience doing something like this. I’ve tried to manually change the start behavior in the registry and that doesn’t work at all.<\/p>","upvoteCount":1,"datePublished":"2021-05-14T20:03:42.000Z","url":"https://community.spiceworks.com/t/enable-office-add-in-via-powershell/799952/1","author":{"@type":"Person","name":"net1994","url":"https://community.spiceworks.com/u/net1994"}},{"@type":"Answer","text":"
Welcome.<\/p>\n
If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n