locked
Cannot use object linking and embedding RRS feed

  • Question

  • Hi All,

    I've a Powershell script to set up user identity of a 32bits DCOM application (Excel 32bits). To do that, Or, I've used a sample of Microsoft Windows SDK for Windows 7  that I compiled DComPerm.exe. 

    New-Item -Path "$RegPath" -Name "$AppID" -Value "Microsoft Excel Application"
    Dcomp.exe -runas "$appId" $DomainUser $Password

    Everything seems good, just that I expect Excel to throw this exception when I open it up:

    Cannot use object linking and embedding

    This happen only if I manually type mmc comexp.msc /32 and then browse the component service console till I click on DCOM Config.

    (Which is normal I'm running 32 bits excel application on a 64bits windows machine)

    Don’t know how to script that last step, any help will be appreciated ?

    Regards,

    • Moved by Baron Bi Thursday, October 25, 2018 5:51 AM
    Wednesday, October 17, 2018 5:43 PM

All replies