0

In single PS script, I need to:

Question: how can I start Outlook un-elevated?

Current command:

$ol = New-Object -com Outlook.Application

StanTastic
  • 311
  • 3
  • 18
  • Temporary workaround: I'm running Outlook elevated, but that's not really the solution I'm looking for. – StanTastic Oct 26 '16 at 13:10
  • An alternative could be to use the `Send-MailMessage` cmdlet rather than sending through Outlook as a COM object. – BenH Oct 26 '16 at 13:56
  • 1
    Send-MailMessage is the way to go if there are not issues with that method due to firewalls being in place, if you do have to deal with firewalls Powershell Runspaces are probably the way to go, you should be able to launch an elevated runspace from within a non-elevated powershell session and then use that to do the IE work, then return the data from that runspace to the main script. – Mike Garuccio Oct 26 '16 at 14:15

0 Answers0