Showing posts with label ใบรับรองความปลอดภัยหมดอายุ Exchange 2007. Show all posts
Showing posts with label ใบรับรองความปลอดภัยหมดอายุ Exchange 2007. Show all posts

Sunday, April 18, 2010

Expired Exchange 2007 Certificate

Welcome to the Exchange Management Shell!

Full list of cmdlets: get-command
Only Exchange cmdlets: get-excommand
Cmdlets for a specific role: get-help -role *UM* or *Mailbox*
Get general help: help
Get help for a cmdlet: help or -?
Show quick reference guide: quickref
Exchange team blog: get-exblog
Show full output for a cmd: | format-list

Tip of the day #77:

Any cmdlet that accepts a size value lets you specify whether the integer value
is in kilobytes (KB), megabytes (MB), gigabytes (GB), or terabytes (TB). For exa
mple:

Set-Mailbox "Kim Akers" -ProhibitSendQuota 200MB

[PS] C:\Windows\System32>Get-ExchangeCertificate | List


AccessRules : {System.Security.AccessControl.CryptoKeyAccessRule, System
.Security.AccessControl.CryptoKeyAccessRule, System.Securi
ty.AccessControl.CryptoKeyAccessRule, System.Security.Acce
ssControl.CryptoKeyAccessRule}
CertificateDomains : {s013, s013.youdomain.co.th}
HasPrivateKey : True
IsSelfSigned : True
Issuer : CN=s013
NotAfter : 13/4/2010 9:04:09 PM
NotBefore : 13/4/2009 9:04:09 PM
PublicKeySize : 2048
RootCAType : Unknown
SerialNumber : 172AB684685B5A8C4F48C95863E042D2
Services : IMAP, POP, IIS, SMTP
Status : Invalid
Subject : CN=s013
Thumbprint : 0F5B59824852C4352C42AB179FE619FC464F87CD



[PS] C:\Windows\System32>New-ExchangeCertificate

Confirm
Overwrite existing default SMTP certificate,
'0F5B59824852C4352C42AB179FE619FC464F87CD' (expires 13/4/2010 9:04:09 PM), with
certificate '7157006150E56F64EBB2B32E0CA2182C3253DACB' (expires 19/4/2011
9:08:24 AM)?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):y

Thumbprint Services Subject
---------- -------- -------
7157006150E56F64EBB2B32E0CA2182C3253DACB ..... CN=s013



[PS] C:\Windows\System32>Enable-ExchangeCertificate -Thumbprint 7157006150E56F64
EBB2B32E0CA2182C3253DACB -Service IIS

[PS] C:\Windows\System32>Remove-ExchangeCertificate -Thumbprint 0F5B59824852C435
2C42AB179FE619FC464F87CD

Confirm
Are you sure you want to perform this action?
Remove certificate with thumbprint 0F5B59824852C4352C42AB179FE619FC464F87CD?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):y
[PS] C:\Windows\System32>


Ref: http://www.exchangeinbox.com/article.aspx?i=114