Hi All,
I've a Powershell script to set up user identity of a 32bits DCOM application (Excel 32bits). To do that, I've used a sample of Microsoft Windows SDK for Windows 7 that I've compiled "DComPerm.exe".
New-Item -Path "$RegPath" -Name "$AppID" -Value "Microsoft Excel Application"
DComPerm.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 in cmd "mmc comexp.msc /32" and then browse the 32 bits component service console till I click on DCOM Config which load DCOM objects.
(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,