scripts/powershell/sacar_propiedades_mailbox.ps1

6 lines
355 B
PowerShell
Raw Permalink Normal View History

2023-07-12 13:43:15 +02:00
$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