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