Difference between revisions of "Office 365"

From Max's Wiki
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://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
+
  $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

OneDrive

SharePoint

Admin