{"id":977,"date":"2010-10-04T01:55:38","date_gmt":"2010-10-03T23:55:38","guid":{"rendered":"http:\/\/www.schertel.net\/wordpress\/?p=977"},"modified":"2010-11-18T12:22:18","modified_gmt":"2010-11-18T11:22:18","slug":"exchange-2010-with-single-certificate","status":"publish","type":"post","link":"http:\/\/www.schertel.net\/wordpress\/?p=977","title":{"rendered":"Exchange 2010 with single Certificate"},"content":{"rendered":"<p>Quelle: <a title=\"http:\/\/virtualbarrymartin.me\/2009\/12\/29\/how-to-setup-exchange-2010-to-use-a-single-certificate-for-internal-and-external-use\/\" href=\"http:\/\/virtualbarrymartin.me\/2009\/12\/29\/how-to-setup-exchange-2010-to-use-a-single-certificate-for-internal-and-external-use\/\" target=\"_blank\">http:\/\/virtualbarrymartin.me<\/a><\/p>\n<p>Auf dieser Website wird beschrieben wie man einen Exchange Server 2010 mit einem einfachen Zertifikat betreiben kann.<\/p>\n<p>Entweder das Script unten in ein *.ps1 File kopieren oder das File herunterladen und die Endung TXT und PS1 \u00e4ndern.<\/p>\n<p>File: <a title=\"ConfigureExchangeSingleCertificate.txt\" href=\"http:\/\/www.schertel.net\/wordpress\/wp-content\/uploads\/2010\/10\/ConfigureExchangeSingleCertificate.txt\">ConfigureExchangeSingleCertificate.txt<\/a><\/p>\n<p>Ich habe das Script von der oben angegebenen Quelle kopiert.<\/p>\n<p># Script to allow you to set all virtual directories to a common name like mail.company.com<\/p>\n<p>Start-Transcript<\/p>\n<p># Variables<\/p>\n<p>[string]$UMExtend = \u201c\/UnifiedMessaging\/Service.asmx\u201d<br \/>[string]$OWAExtend = \u201c\/OWA\u201d<br \/>[string]$OABExtend = \u201c\/OAB\u201d<br \/>[string]$SCPExtend = \u201c\/Autodiscover\/Autodiscover.xml\u201d<br \/>[string]$EWSExtend = \u201c\/EWS\/Exchange.asmx\u201d<br \/>[string]$ECPExtend = \u201c\/ECP\u201d<br \/>[string]$ConfirmPrompt = \u201cSet this Value? (Y\/N)\u201d<br \/>[string]$NoChangeForeground = \u201cwhite\u201d<br \/>[string]$NoChangeBackground = \u201cred\u201d<\/p>\n<p>Write-host \u201cThis will allow you to set the virtual directories associated with setting up a single SSL certificate to work with Exchange 2010.\u201d<br \/>Write-host \u201c\u201d<br \/>[string]$base = Read-host \u201cBase name of virtual directory (e.g. mail.company.com)\u201d<br \/>write-host \u201c\u201d<br \/># =======================================================<br \/># Validate if a third party trusted certificate is being used<br \/># because BITS won\u2019t use untrusted certificates<br \/>[string]$set = Read-host \u201cIs the certificate being used an internally generated certificate? (Y\/N)\u201d<br \/>Write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d)&nbsp;&nbsp;&nbsp; {<br \/>&nbsp;&nbsp;&nbsp; [string]$OABprefix = \u201chttp:\/\/\u201d<br \/>}&nbsp;&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp; {<br \/>&nbsp;&nbsp;&nbsp; [string]$OABprefix = \u201chttps:\/\/\u201d<br \/>}<\/p>\n<p># =======================================================<br \/># Build the Autodiscover URL and set the SCP Value<\/p>\n<p>Write-host \u201cSetting Autodiscover Service Connection Point\u201d -foregroundcolor Yellow<br \/>write-host \u201c\u201d<\/p>\n<p>$SCPURL = \u201chttps:\/\/\u201d + $base + $SCPExtend<\/p>\n<p>[array]$SCPCurrent = Get-ClientAccessServer<\/p>\n<p>Foreach ($value in $SCPCurrent) {<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cLooking at Server: \u201d $value.name<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent SCP value: \u201d $value.AutoDiscoverServiceInternalUri.absoluteuri<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew SCP Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $SCPURL<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<br \/>&nbsp;&nbsp;&nbsp; if ($set -eq \u201cY\u201d)&nbsp;&nbsp;&nbsp; {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-ClientAccessServer -id $value.identity -AutoDiscoverServiceInternalUri $SCPURL<br \/>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cAutodiscover Service Connection Point internal value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<br \/>}<\/p>\n<p># =======================================================<br \/># Build the EWS URL and set the internal Value<\/p>\n<p>Write-host \u201cSetting Exchange Web Services Virtual Directories\u201d -foregroundcolor Yellow<br \/>write-host \u201c\u201d<\/p>\n<p>$EWSURL = \u201chttps:\/\/\u201d + $base + $EWSExtend<\/p>\n<p>[array]$EWSCurrent = Get-WebServicesVirtualDirectory<\/p>\n<p>Foreach ($value in $EWSCurrent) {<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent Internal Value: \u201d $value.internalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew Internal Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $EWSUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d)&nbsp;&nbsp;&nbsp; {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-WebServicesVirtualDirectory -id $value.identity -InternalURL $EWSURL<br \/>&nbsp;&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cExchange Web Services Virtual Directory internal value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp;&nbsp; }<\/p>\n<p>Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent External Value: \u201d $value.externalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew External Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $EWSUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d)&nbsp;&nbsp;&nbsp; {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-WebServicesVirtualDirectory -id $value.identity -ExternalURL $EWSURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cExchange Web Services Virtual Directory external value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<br \/>}<\/p>\n<p># ======================================================<br \/># Build the OAB URL and set the internal Value<\/p>\n<p>Write-host \u201cSetting OAB Virtual Directories\u201d -foregroundcolor Yellow<br \/>write-host \u201c\u201d<\/p>\n<p>$OABURL = $OABprefix + $base + $OABExtend<\/p>\n<p>[array]$OABCurrent = Get-OABVirtualDirectory<\/p>\n<p>Foreach ($value in $OABcurrent) {<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent Internal Value: \u201d $value.internalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew Internal Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $OABUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d)&nbsp;&nbsp;&nbsp; {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-OABVirtualDirectory -id $value.identity -InternalURL $OABURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cOAB Virtual Directory internal value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<\/p>\n<p>Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent External Value: \u201d $value.externalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew External Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $OABUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d) {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-OABVirtualDirectory -id $value.identity -ExternalURL $OABURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cOAB Virtual Directory external value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<br \/>}<\/p>\n<p># =======================================================<br \/># Build the UM URL and set the internal Value<\/p>\n<p>Write-host \u201cSetting UM Virtual Directories\u201d -foregroundcolor Yellow<br \/>write-host \u201c\u201d<\/p>\n<p>$UMURL = \u201chttps:\/\/\u201d + $base + $UMExtend<\/p>\n<p>[array]$UMCurrent = Get-UMVirtualDirectory<\/p>\n<p>foreach ($value in $UMCurrent) {<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent Internal Value: \u201d $value.internalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew Internal Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $UMUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d) {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-UMVirtualDirectory -id $value.identity -InternalURL $UMURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cUM Virtual Directory internal value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<\/p>\n<p>Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent External Value: \u201d $value.externalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew External Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $UMUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d) {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-UMVirtualDirectory -id $value.identity -ExternalURL $UMURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cUM Virtual Directory external value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<br \/>}<\/p>\n<p># =======================================================<br \/># Build the ECP URL and set the internal Value<\/p>\n<p>Write-host \u201cSetting ECP Virtual Directories\u201d -foregroundcolor Yellow<br \/>write-host \u201c\u201d<\/p>\n<p>$ECPURL = \u201chttps:\/\/\u201d + $base + $ECPExtend<\/p>\n<p>[array]$ECPCurrent = Get-ECPVirtualDirectory<\/p>\n<p>foreach ($value in $ECPCurrent) {<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent Internal Value: \u201d $value.internalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew Internal Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $ECPUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d) {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-ECPVirtualDirectory -id $value.identity -InternalURL $ECPURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cECP Virtual Directory internal value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<\/p>\n<p>Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent External Value: \u201d $value.externalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew External Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $ECPUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d) {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-ECPVirtualDirectory -id $value.identity -ExternalURL $ECPURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cECP Virtual Directory external value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<br \/>}<\/p>\n<p># =======================================================<br \/># Build the OWA URL and set the internal Value<\/p>\n<p>Write-host \u201cSetting OWA Virtual Directories\u201d -foregroundcolor Yellow<br \/>write-host \u201c\u201d<\/p>\n<p>$OWAURL = \u201chttps:\/\/\u201d + $base + $OWAExtend<\/p>\n<p>[array]$OWACurrent = Get-OWAVirtualDirectory<\/p>\n<p>foreach ($value in $OWACurrent) {<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent Internal Value: \u201d $value.internalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew Internal Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $OWAUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d) {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-OWAVirtualDirectory -id $value.identity -InternalURL $OWAURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cOWA Virtual Directory internal value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<\/p>\n<p>Write-host \u201cLooking at Server: \u201d $value.server<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cCurrent External Value: \u201d $value.externalURL<br \/>&nbsp;&nbsp;&nbsp; Write-host \u201cNew External Value:&nbsp;&nbsp;&nbsp;&nbsp; \u201d $OWAUrl<br \/>&nbsp;&nbsp;&nbsp; [string]$set = Read-host $ConfirmPrompt<br \/>&nbsp;&nbsp;&nbsp; write-host \u201c\u201d<\/p>\n<p>if ($set -eq \u201cY\u201d) {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set-OWAVirtualDirectory -id $value.identity -ExternalURL $OWAURL<br \/>&nbsp;&nbsp;&nbsp; } else {<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host \u201cOWA Virtual Directory external value NOT changed\u201d -foregroundcolor $NoChangeForeground -backgroundcolor $NoChangeBackground<br \/>&nbsp;&nbsp;&nbsp; }<br \/>}<\/p>\n<p>End-Transcript<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quelle: http:\/\/virtualbarrymartin.me Auf dieser Website wird beschrieben wie man einen Exchange Server 2010 mit einem einfachen Zertifikat betreiben kann. Entweder das Script unten in ein *.ps1 File kopieren oder das File herunterladen und die Endung TXT und PS1 \u00e4ndern. File: &hellip; <a href=\"http:\/\/www.schertel.net\/wordpress\/?p=977\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[],"class_list":["post-977","post","type-post","status-publish","format-standard","hentry","category-exchange-server"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ByMg-fL","_links":{"self":[{"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=977"}],"version-history":[{"count":8,"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/977\/revisions"}],"predecessor-version":[{"id":1032,"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/977\/revisions\/1032"}],"wp:attachment":[{"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=977"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.schertel.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}