Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Last active July 18, 2020 19:02
Show Gist options
  • Save supermarsx/77144af66b1723db77297e10b09ec0ca to your computer and use it in GitHub Desktop.
Save supermarsx/77144af66b1723db77297e10b09ec0ca to your computer and use it in GitHub Desktop.
Exchange 2013 Shell, Set IMAP, POP wildcard certificate
$SERVERNAME = "SERVERNAME"
$WDOMAIN = "*.DOMAIN.COM"
Set-PopSettings -X509CertificateName $SERVERNAME
Set-ImapSettings -X509CertificateName $SERVERNAME
$Cert = Get-ExchangeCertificate | ? Subject -like $WDOMAIN
Enable-ExchangeCertificate -Thumbprint $Cert.Thumbprint -Services POP,IMAP
Get-ExchangeCertificate
Get-Service -Name MSExchangePOP* , MSExchangeIMAP* | Restart-Service
Get-Service -Name MSExchangePOP* , MSExchangeIMAP*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment