script connexion sharepoint
$adminUPN= »@mail »
$orgName= »domaine sharepoint »
$userCredential = Get-Credential -UserName $adminUPN -Message « Type the password. »
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
Deconnexion sharepoint
Disconnect-SPOService
https://technet.microsoft.com/fr-fr/library/fp161372.aspx
powershell groupe et permissions sharepoint
https://www.sherweb.com/blog/how-to-use-powershell-for-sharepoint/
CONNEXION Exchange online
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
deconnexion
Remove-PSSession $Session