Conectare pe server mail Office 365

Configurare noua (How To)

Situatie

Daca este nevoie de conectarea pe un server de office 365 prin powershell se pot urma pasii de mai jos:

Backup

Se folosesc comenzile de mai jos in ordinea afisata:

$AdminUsername = “administrator@domeniu.ro”

$AdminPassword = “Parola”

$SecurePassword = ConvertTo-SecureString $AdminPassword -AsPlainText -Force

$cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $AdminUsername,$SecurePassword

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://outlook.office365.com/powershell-liveid/” -Credential $cred -Authentication Basic -AllowRedirection

Import-PSSession $Session

Import-Module MSOnline

Connect-MSOLService -Credential $cred

Solutie

Tip solutie

Permanent
Etichetare:

Voteaza

(6 din 15 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?