Difference between revisions of "Office 365"

From Max's Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
  $LiveCred = Get-Credential
 
  $LiveCred = Get-Credential
 
Login to Organization:
 
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
 
  $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic –AllowRedirection
 
Run the following:
 
Run the following:

Revision as of 17:44, 3 November 2017


Exchange Online

Powershell

Connect to Exchange Online:

$LiveCred = Get-Credential

Login to Organization:

$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