Category Archives: Exchange 2007

Get Exchange to use single host Certificate

While moving to office 365 some peoples exchange 2007 do not have correct certificates for the move.

Once a correct certificate is installed say “example.jake.com”

you can use the following script;

$URL=”example.jake.com”
$CName=”exch-svr-test”

Get-ClientAccessServer $CName | Set-ClientAccessServer -AutodiscoverServiceInternalUri https://$URL/autodiscover/autodiscover.xml
Get-WebServicesVirtualDirectory -Server $CName | Set-WebServicesVirtualDirectory -InternalUrl https://$URL/ews/exchange.asmx
Set-OWAVirtualDirectory -identity “$cname\owa (Default Web Site)” -InternalURL https://$URL/owa -ExternalURL https://$URL/owa
Get-OABVirtualDirectory -Server $CName | Set-OABVirtualDirectory -InternalURL https://$URL/OAB -ExternalURL https://$URL/OAB
Get-ActiveSyncVirtualDirectory -Server $CName | Set-ActiveSyncVirtualDirectory -InternalURL https://$URL/Microsoft-Server-ActiveSync -ExternalURL https://$URL/Microsoft-Server-ActiveSync
Set-OutlookAnywhere -identity “$cname\RPC (Default Web Site)” -ExternalHostname $URL

Boom this into powershell happy days

Generate UC Certificate

When generating a UC Certificate via the snap in i get this from the MMC:

Error:  “Certificate Request Processor The request contains no certificate template information. 0x80094801 (-2146875391) Denied by Policy Module 0x80094801 the request does not contain a certificate template extension or the Certificate Template request attribute”

Microsoft’s resolution: Generate the request some other way. yeah ok

J’s solution: certreq -submit -attrib “CertificateTemplate: WebServer” WebServerCertReq.txt

Exchange stops working due to diskspace

Try using following if issue is low disk space on system drive, this will come as a backpressure alert
  1. Open the following file by using Notepad:

    C:\Program Files\Microsoft\Exchange Server\Bin\EdgeTransport.exe.config.

  2. Modify the following line in the <appSettings> section:
    <add key="QueueDatabasePath" value="<LocalPath>" />

    For example, to create a new location for your transaction logs at the location “C:\Queue\QueueDB”, modify the QueueDatabasePath parameter as follows:

    <add key="QueueDatabasePath" value="C:\Queue\QueueDB" />
  3. Save and close the EdgeTransport.exe.config file.
  4. Restart the Microsoft Exchange Transport service.
  5. Verify that the new Mail.que and Trn.chk files are created at the new location.
  6. Remove the unused Mail.que and Trn.chk files from the original location.

Exchange OAB Issues

Exchange 10 server was deployed, this organisation was not using Address List Segregation.

Despite this, I cannot get any items to display in the Global Address List in Outlook – however the list is fine in OWA.

Some relevant attributes in ADSI:

CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mail,DC=local

addressBookRoots: CN=All Address Lists,CN=Address Lists Container,CN=mail,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mail,DC=local

globalAddressList: CN=Default Global Address List,CN=All Global Address Lists,CN=Address Lists Container,CN=mail,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mail,DC=local

CN=Default Global Address List,CN=All Global Address Lists,CN=Address Lists Container,CN=mail,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mail,DC=local

Permissions:

Make sure all users can read list and there are no user Denys.