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
Leave A Comment?