Ajouter Exchange/remote-authentification.ps1
This commit is contained in:
parent
01d8acaaa6
commit
8d23d2594c
5
Exchange/remote-authentification.ps1
Normal file
5
Exchange/remote-authentification.ps1
Normal 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
|
Loading…
x
Reference in New Issue
Block a user