6 lines
355 B
PowerShell
6 lines
355 B
PowerShell
$UserCredential = Get-Credential
|
|
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
|
|
Import-PSSession $Session -DisableNameChecking
|
|
Get-Mailbox -Identity "usuario" | Format-List
|
|
Remove-PSSession $Session
|