Difference between revisions of "Office 365"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
Username & Password | Username & Password | ||
Run the following: | Run the following: | ||
− | $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:// | + | $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic –AllowRedirection |
Run the following: | Run the following: | ||
Import-PSSession $Session | Import-PSSession $Session |
Revision as of 22:05, 2 November 2017
Exchange Online
Powershell
Connect to Exchange Online:
$LiveCred = Get-Credential
Login to Organization:
Username & Password
Run the following:
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic –AllowRedirection
Run the following:
Import-PSSession $Session