$livecred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange –ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection

Set-ExecutionPolicy RemoteSigned -Force

Import-PSSession $Session

Connect-MsolService -Credential $livecred

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *