rutherg
13 years agoNew Contributor
Unable to access an application after launching with RunAs
I have successfully started Outlook as a different user account using both the RunAs option for the TestedApps and in a script. Now I'm trying to read the Inbox using a version of the example script sent me by the helpdesk. I put in the following statement:
Aliases.Explorer.wndProgman.SHELLDLL_DefView.browser.Click
to take focus off the Outlook window - as suggested in the online help. The script fails at the next statement:
Set MSOutlook2003 = Sys.OleObject("Outlook.Application")
with the message: "Server execution failed".
Is this because I'm using the RunAs feature? It all worked fine when I started Outlook in the "simple" mode. How can I work with Outlook using a different user account?
Regards,
Gail R
Aliases.Explorer.wndProgman.SHELLDLL_DefView.browser.Click
to take focus off the Outlook window - as suggested in the online help. The script fails at the next statement:
Set MSOutlook2003 = Sys.OleObject("Outlook.Application")
with the message: "Server execution failed".
Is this because I'm using the RunAs feature? It all worked fine when I started Outlook in the "simple" mode. How can I work with Outlook using a different user account?
Regards,
Gail R