Collegarsi al portale di o365
Collegarsi via powershell come amministratore
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
Connect-MsolService
$UserCredential = Get-Credential
-Credential nome@dominio.it
$Session = New-PSSession
-ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $UserCredential
-Authentication Basic -AllowRedirection
Import-PSSession $Session
Commenti
Posta un commento