Ajouter Exchange/remote-authentification.ps1

This commit is contained in:
Hubert Cornet 2023-10-21 18:27:41 +02:00
parent 01d8acaaa6
commit 8d23d2594c

View File

@ -0,0 +1,5 @@
$sessionOption = New-PsSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
$credential = $host.ui.PromptForCredential("Connexion Exchange 2013", "Merci de renseigner votre compte.","DOMAINE\UTILISATEUR","NetBiosUserName")
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "http://DOMAINE/powershell" -Credential $Credential -Authentication kerberos
Import-PSSession $session