วันพฤหัสบดีที่ 29 พฤศจิกายน พ.ศ. 2555

New Install Exchange Server 2013 (ตอนที่ 2)

หลังจากในตอนที่ 1 เราได้ทำความรู้จักกับ Exchange Server 2013 ไปแล้วและได้มีการเตรียมเครื่อง VM และติดตั้งเครื่องที่ทำหน้าที่ mailbox role ไปทั้งสอง servers ในตอนที่ 2 นี้เราจะมาทำการติดตั้งเครื่องที่ทำหน้าที่ client access role กันครับ

1. Run คำสั่ง PowerShell บนเครื่อง LON-EXCAS1 และ LON-EXCAS2

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation

2. รันติดตั้ง Exchange

image

3. Agree กด Next

image

4. กด Next

image

5. เลือก Client Access Role อย่างเดียวครับแล้วกด Next

image

6. กด Next

image

7. เจอ error เหมือนเครื่อง mailbox role อีกแล้วครับท่าน ต้องติดต้้ง UC API 4.0 เหมือนกับเครื่อง mailbox role ครับ ก็หาๆ มาติดตั้งซะนะ จะได้ไม่ error

image

8.เมื่อติดตั้ง UC API 4.0 แล้วก็จะไม่ error แล้วจะสามารถติดตั้งต่อได้แล้วครับ

image

9. ติดตั้งเรียบร้อยไปหนึ่งเครื่อง

image

10. ติดตั้ง Exchange Server 2013 บนเครื่อง LON-EXCAS2 กด Next โลด

image

11. Agree แล้วกด Next

image

12. กด Next

image

13. เลือก client access role แล้วกด Next

image

14. กด Next

image

15. กด Install

image

16. ติดตั้งเสร็จเรียบร้อยทั้ง 4 เครื่องแล้วครับ

image

 

บทความตอนถัดไป (ตอนที่ 3) เราจะไปสำรวจหน้าตา Console Exchange  2013 กันครับ

บทความนี้ขอเท่านี้ก่อนละกันครับ เหนื่อยแล้วไปหาอะไรเย็นๆ กินให้ชื่นใจก่อนนะครับ !!!

New Install Exchange Server 2013 (ตอนที่ 1)

ห่างหายไปนานเลยครับสำหรับบทความที่เกี่ยวกับ Exchange เพราะต้องศึกษาเกี่ยวกับ Product System Center 2012 ซะเป็นส่วนใหญ่ (เทรนมันไปทาง private cloud ซะเยอะ T_T)
ในบทความนี้เรามาดูวิธีการที่จะติดตั้ง Exchange Server 2013 แบบ Fresh install กันนะครับ (ที่ไม่สามารถติดตั้งแบบ coexistent ได้เพราะว่า Exchange 2010 SP3 ยังไม่ release ครับ ต้องรอ SP3 ออกมาก่อนถึงจะ migrate จาก 2010 –> 2013 ได้)
มาดูเรื่อง Requirements ในการติดตั้งกันก่อนครับ (Technet)
Active Directory Infrastructure
เครื่องที่ถือ Schema Master Role
image
เครื่องที่เป็น Global Catalog Server
image
เครื่องที่เป็น domain controller
image
และสุดท้าย Active Directory Forest
image
Supported Operating Systems for Exchange Server 2013
image
Exchange Server 2013 Support Clients
image

หลังจากที่เรารู้ความต้องการเบื้องต้นก่อนที่จะติดตั้ง Exchange Server 2013 แล้วนะครับ
ขั้นตอนถัดมาคือมา design ในส่วนของ LAB ที่เราจะสร้างขึ้นมาเพื่อใช้ในการติดตั้งระบบ Exchange Server 2013 กันครับ
โดยการติดตั้งระบบทั้งหมดผมขอใช้ OS ที่เป็น Windows Server 2012 Standard Edition ทั้งหมดนะครับโดยดูจาก diagram จะมีเครื่องที่เป็น Domain Controller 1 เครื่อง และอีก 4 Servers ที่เตรียมจะเป็นเครื่องสำหรับติดตั้ง Exchange Server 2013 ครับ (ติดตั้งแบบจัดเต็ม Full HA)
diagram
หลังจากตระเตรียมเครื่อง VM พร้อมเรียบร้อยแล้วนะครับ (พร้อมในที่นี้คือ เรามีการ promote domain และ join domain เครื่องที่จะติดตั้ง exchange server ทั้ง 4 servers เข้าโดเมนเรียบร้อยแล้วนะครับ)
ขั้นตอนที่ 1 (ติดตั้ง Exchange ที่ทำหน้าที่ mailbox role ตัวที่หนึ่ง)
1. ที่เครื่อง LON-MBEX1 เปิด Powershell ขึ้นมาและรันคำสั่งต่อไปนี้
Install-WindowsFeature RSAT –ADDS (สำหรับ Windows Server 2012 นะครับ Windows Server 2008 R2 จะใช้ Add-WindowsFeature RSAT –ADDS)
2. รันคำสั่งเพื่อติดตั้ง Components ต่างๆ ที่จำเป็นต้องใช้สำหรับ Exchange Server 2013 (รันคำสั่งนี้ทั้งสองเครื่อง LON-EXMB1, LON-EXMB2)
Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation
3. หลังจากรันชุดคำสั่ง PowerShell แล้วจะต้องทำการ reboot เครื่องก่อนหนึ่งครั้ง
4. หลังจาก reboot เครื่องแล้วเราจะทำการติดตั้ง Exchange ที่เครื่อง LON-EXMB1 เป็นเครื่องแรก (เครื่องนี้เราเตรียม RSAT –ADDS ไว้เพื่อทำการ extend schema ไว้เรียบร้อยแล้ว)
5. Run Setup exchange server 2013
image
6. หน้านี้กด next
image
7. เลือก agree และกด Next
image
8. กด Next
image
9. เลือกเฉพาะ Mailbox Role
image
10. กด Next
image
11. ตั้งชื่อ Organization และกด Next
image
12. มี anti-spam มาให้เลือกติดตั้งด้วยแต่เรายังไม่ติดตั้งครับ กด Next
image
13. น้านไงเยอะ (error warning ตรึงโป๊ะ แต่ เอ๊ะไอ้ที่ขาดจริงๆ หรือ error มีอันเดียวเองนะ)
image
14. เข้าไปดาวโหลด Microsoft Unified Communications Managed API 4.0 มาติดตั้งก่อนเลยครับ
image
15. หลังจากติดตั้ง UC API 4.0 ไปแล้วย้อนกลับมาที่หน้าติดตั้ง Exchange เมื่อทำการ re-check error ก็จะไม่มีแล้วเหลือแต่ warning อันแรกเข้าใจว่าจะทำการ /prepareAD อีกสองอันฟ้องเกี่ยวกับ Microsoft Office 2010 Filter Packs
image
16. ติดตั้งหน่อยละกันแก้ความไม่สบายใจที่มันมี warning
image
17. กด Install เพื่อติดตั้งได้เลยครับ
image
18. ติดตั้งเสร็จเรียบร้อย 1 เครื่อง
image

ขั้นตอนที่ 2 (ติดตั้ง Exchange ที่ทำหน้าที่ mailbox role ตัวที่สอง)
1. ติดตั้ง UC API 4.0 , และ Microsoft Office 2010 Filter Pack ก่อนเลยครับ
2. รันติดตั้ง Exchange Server 2013 ต่อได้เลยครับ
image
3. กด Next
image
4. Accept และกด Next
image
5. กด Next
image
6. เหมือนเดิมครับเลือกติดตั้งเฉพาะ Mailbox Role และกด Next
image
7. กด Next
image
8. กด Next
image
9. ก่อนติดตั้งมี Warning ฟ้องเกี่ยวกับไม่สามารถหา Send Connector ที่มี address space ‘*’ กลัวว่าติดตั้งไปแล้วจะส่งเมล์ออกไม่ได้ซะละมั้ง กด Install ไปเลยครับไม่ต้องไปแคร์สื่อ
image
10. ติดตั้งเสร็จเรียบร้อยอีกหนึ่งเครื่อง
image

เราติดตั้งระบบมาได้ครึ่งทางแล้วครับยังเหลืออีกสอง servers ไว้คอยพบกันอีกทีตอนที่ 2 นะครับ !!!

วันอังคารที่ 3 เมษายน พ.ศ. 2555

Remove Public Folder on Exchange Server 2010

 

บทความนี้ เรามาดูว่าจะลบ Public Folder Database ออกจาก Exchange Organization ได้ยังไง (เคสนี้คือผมมี Exchange 2003 อยู่แล้วแต่ได้ลองติดตั้ง Exchange 2010 เพิ่มเข้าไปแบบ Co-Existence และสุดท้ายคือต้องการ Remove Exchange 2010 ออกจากระบบ)

แต่ขั้นตอนที่สั่ง Remove Public Folder Database ก็ขึ้น Error มาแบบนี้

image

วิธีการแก้ไขเพื่อให้สามารถ Remove Public Folder ได้มีขึ้นตอนประมาณนี้ครับ

เปิด EMS ขึ้นมาครับแล้วรันคำสั่งตามนี้

image

รัน PS Scripts ตามด้วยพารามิเตอร์เหล่านี้

image

จากนั้นกลับไปที่ EMC แล้ว Remove Public Folder Databae

และทำการ Unininstall Exchange 2010 ออกจาก Exchange Organization ได้แล้วครับ

วันศุกร์ที่ 16 กรกฎาคม พ.ศ. 2553

Cannot mount Public Folder Database with error HR=0x80004005,EC=2418

จาก error ที่เจอไปค้นๆ ใน technet ดูสาเหตุมาจาก object public folder hierarchy มันหายไป(หายไปได้ยังไง ใครไปลบมัน)

วิธีแก้ทำตามนี้ครับ ขอแปะ ขั้นตอนจาก technet เลยนะครับ


Open adsiedit.msc.

Select Configuration-Configuration-Services-Microsoft Exchange-Exchange OrganizationName-Administrative Groups-Exchange Administrative Group.

Now we were missing the 'Folder Hierarchies' folder - how I still am unsure of. All we had to do was recreate it as follows:

Create the "Folder Hierarchies" under the Exchange Administrative Group

1. Right click on Exchange Administrative Group

2. Select New Object

3. Select msExchPublicFolderTreeContainer for the class and click Next

4. Enter the following for the value: Folder Hierarchies, click Next

5. Click Finish

Create Public Folder Tree Object

1. Right click CN=Folder Hierarchies -> New Object

2. Selected msExchPFTree for the class

3. For the value we entered, "Public Folders" and clicked next

4. Clicked on the "More Attributes" button, selected msExchPFTreeType and set the

value to 1. Note: This is very important that this value is set to a value of 1 as

this tells Exchange that this is a MAPI Tree

5. Click Ok and then finish

Populate msExchOwningPFTreeBL attribute object of the PF Stores in the organization

(Since this attribute is not directly editable, you have to follow the below steps

to do this for each PF store)

1. Get properties of the newly created "Public Folders" Tree object in ADSIEdit.

2. Copy the distinguishedname value to the clipboard and then click cancel.

3. Navigate to the Storage group that contains the Public Folder Store for this

server and get properties of the server.

4. Locate the msExchOwningPFTree attribute and paste in the value that was copied

to the clipboard in step 2. Click OK.

5. Restart the Information Store Service

6. Now try to mount the PF store and see if we can access it fine now.

วันเสาร์ที่ 3 กรกฎาคม พ.ศ. 2553

exchange 2003 error id:9098

Exchange Server 2003 Server SP2

Disk Array: Raid 5

HDD เสียไปลูกพอเปลี่ยน HDD ใหม่ sync disk อะไรเรียบร้อยแล้ว แต่ที่ application events มี error id:9098


The MAD Monitoring thread was unable to read its configuration from the DS, error '0x80041002'.


เกิดขึ้นทุกๆ 5 นาที (ได้วิธีแก้แล้วครับ ไปดูวิธีกัน)

ขั้นแรกผมใช้วิธี rebuild WMI ขึ้นมาใหม่เลยครับ วิธีการตามนี้

Click Start, Run and type CMD.EXE

Note: In Windows Vista, you need to open an elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

Type this command and press Enter: net stop winmgmt

Using Windows Explorer, rename the folder %windir%\System32\Wbem\Repository. (For example, %windir%\System32\Wbem\Repository_bad). %windir% represents the path to the Windows directory, which is typically C:\Windows.

Switch to Command Prompt window, and type the following and press ENTER after each line:

net start winmgmt

EXIT

For Windows Server 2003

Use the following command to detect and repair a corrupted WMI Repository:

rundll32 wbemupgd, RepairWMISetup


Re-registering the WMI components

The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLs and .EXE files in %windir%\sysWOW64\wbem.

To re-register the WMI components, run the following commands at the command prompt:

  • cd /d %windir%\system32\wbem
  • for %i in (*.dll) do RegSvr32 -s %i
  • for %i in (*.exe) do %i /RegServer
หลังจาก Rebuild WMI ขึ้นมาใหม่เรียบร้อยแล้วก็ทำตามขั้นตอน 4 Step ด้านล่างให้ครบ

Step 1: Check the WMI service

a.

Log on to the computer that is running Exchange 2003 by using an account that has administrative permissions.

b.

Click Start , click Run , type wmimgmt.msc in the Open box, and then click OK .

c.

In the WMI snap-in, right-click WMI Control (Local) , and then click Properties .

d.

If the WMI service is configured correctly, the WMI Control (Local) Properties dialog box is displayed. When you click the General tab, the operating system version and the WMI version information are displayed.


Step 2: Check the WMI security settings

a.

In the WMI snap-in, click the Security tab.

b.

Expand Root , click MicrosoftExchangeV2 , and then click Security .

c.

Make sure that the inherited permissions resemble the following permissions, and then click OK :

Administrators

Full permissions

Everyone

Execute method

Provider Write

Enable account

Local Service

Execute method

Provider Write

Enable account

Network Service

Execute method

Provider Write

Enable account

d.

Expand CIMV2 , expand Applications , click Exchange , and then click Security .

e.

Make sure that the inherited permissions resemble the following permissions, and then click OK :

Administrators

Full permissions

Everyone

Execute method

Provider Write

Enable account

Local Service

Execute method

Provider Write

Enable account

Network Service

Execute method

Provider Write

Enable account

f.

Use Windows Explorer to locate and to right-click the WINNT\SYSTEM32\WBEM folder, and then click Properties .

g.

In the wbem Properties dialog box, click the Security tab.

h.

Make sure that the permissions resemble the following permissions, and then click OK :

Administrators

Full Control

Creator Owner

Special Permissions

Authenticated Users

Read & Execute

List Folder Contents

Read

System

Full control


Step 3: Use Wbemtest.exe to check classes and namespaces

a.

Click Start , click Run , type wbemtest in the Open box, and then click OK .

b.

In the Windows Management Instrumentation Tester dialog box, click Connect .

c.

In the Namespace field, type root\cimv2\applications\exchange , and then click Connect .

d.

Click Enum Classes . Do not enter a superclass name. Select the Recursive option, and then click OK .

e.

In the Query Result page, compare these values with the values from another server that is correctly running the same version of Exchange 2003 with the same service packs. These values should be the same.

f.

Click Close .

g.

In the Windows Management Instrumentation Tester dialog box, click Connect .

h.

In the Namespace field, type root\microsoftExchangeV2 , and then click Connect .

i.

Click Enum Classes . Do not enter a superclass name. Select the Recursive option, and then click OK .

j.

In the Query Result page, compare these values with the values from another server that is correctly running the same version of Exchange 2003 with the same service packs. These values should be the same.

k.

Click Close .

l.

Click Enum Instances .

m.

Enter the class name that you want to enumerate, such as Exchange_Server or Exchange_DSAccessDC , and then click OK .

The class name depends on the issue that you want to troubleshoot or to test. You can access the class names in steps 3i and 3j.


Step 4: Register the Exchange 2003 WMI .dll files

the WMI namespaces, and the WMI classes You might use an invalid WMI namespace or an invalid WMI class error message when you check the WMI security settings in step 2. Alternatively, you might use an invalid WMI namespace or an invalid WMI class error message when you use Wbemtest.exe to check the WMI classes and the WMI namespaces in step 3.

If this occurs, you must register the required Exchange 2003 .dll files, and then import the Exchange 2003 namespaces and classes to the WMI repository. To do this, follow these steps:

a.

Click Start , click Run , type cmd in the Open box, and then click OK .

b.

Change to the Exchsrvr\Bin directory.

c.

At the command prompt, type the following commands. Press ENTER after each command.

exmgmt.exe /uninstall
exmgmt.exe /install
regsvr32 /s exwmi.dll
regsvr32 /s cdowf.dll
regsvr32 /s cdowfevt.dll

d.

Change to the Windows\System32\Wbem directory.

e.

At the command prompt, type the following commands. Press ENTER after each command.

mofcomp.exe -class:forceupdate C: \WINDOWS\system32\WBEM\exmgmt.mof
mofcomp.exe C: \WINDOWS\system32\WBEM\exwmi.mof
mofcomp.exe -n:root\cimv2\applications\exchange C: \windows\system32\wbem\wbemcons.mof
mofcomp.exe -n:root\cimv2\applications\exchange C: \windows\system32\wbem\smtpcons.mof
mofcomp.exe -n:root\cimv2\applications\exchange C: \winnt\system32\wbem\msgtrk.mof

Note The Msgtrk.mof file is included only in Exchange 2003 and in later versions of Exchange Server. This file is not included in Microsoft Exchange 2000 Server.

f.

Click Start , click Run , type services.msc in the Open box, and then click OK .

g.

In the Services snap-in, right-click Windows Management Instrumentation , and then click Restart .