Connect to Exchange Online / Office 365 with Current Windows Credentials


i posted question in office 365 forum https://community.office365.com/en-us/f/613/t/409536 , directed post here instead.

we have hybrid exchange 2007 / office 365 environment, , used azure ad connect set federation.  have scripts run automatically whenever new hire created, or whenever termination processed.  these scripts things create user in ad, create mailbox, add user groups, etc.
these scripts updated when entirely on office 365, no on-premises exchange.  prefer not have store login credentials powershell script.  know can use convertfrom-securestring , @ least not store credentials plain text, ideally ad user credentials of whatever account running script pass through.
tasks use azure active directory, know can use connect-msolservice -currentcredential , not have pass other credentials.  same tasks use exchange online.  essentially, rather run

$usercredential = get-credential (or equivalent commands read credentials file)
$session = new-pssession -configurationname microsoft.exchange -connectionuri https://outlook.office365.com/powershell-liveid/ -credential $usercredential -authentication basic -allowredirection

i ideally run this:

$session = new-pssession -configurationname microsoft.exchange -connectionuri https://outlook.office365.com/powershell-liveid/ -currentcredential -allowredirection

can please let me know if possible this?  if not, feature plan add?
thank you,
randy

this not feature of o365.  if want request features post in "connect".

\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file