From 8d23d2594c26a40d4c973529c10926e550deb46e Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Sat, 21 Oct 2023 18:27:41 +0200 Subject: [PATCH] Ajouter Exchange/remote-authentification.ps1 --- Exchange/remote-authentification.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Exchange/remote-authentification.ps1 diff --git a/Exchange/remote-authentification.ps1 b/Exchange/remote-authentification.ps1 new file mode 100644 index 0000000..6a5033a --- /dev/null +++ b/Exchange/remote-authentification.ps1 @@ -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 \ No newline at end of file