Showing posts with label Exchange Server 2013. Show all posts
Showing posts with label Exchange Server 2013. Show all posts

Friday, January 25, 2013

Delete all mails in a mailbox by PowerShell in Exchange

One of my friends asked me. How to delete all emails in a user mailbox in Exchange 2007? 
Then I try to search the solution . I found the solution from an article "Delete emails from mailboxes - Exchange 2007" which was written by Ratish Nair.

After that, I tried to find a solution to delete all emails in a user mailbox in Exchange 2010 and 2013. I found the another solution from an article "Exchange 2010 SP1 or SP2 PowerShell cmdlet for deleting all email in a mailbox" which was written by Terence Luk. I tried to perform it in Exchange 2010 and Exchange 2013 environment.

Remark: To delete all emails in Exchange 2010 RTM , we need to add a user in "Discovery Management", "Exchange Support Diagnostics" and "Exchange Mailbox Import Export" groups and then use "Export-Mailbox -DeleteContent" to delete all emails in a user mailbox.
This posting is provided “AS IS” with no warranties, and confers no rights!

Sunday, December 30, 2012

Exchange Server 2013 unattended installation

I will install Exchange 2013 from the command prompt on Windows Server 2012.

Computer FQDN: DC01.fabrikam.com
IP address /network: 192.168.2.10/24
Roles: Domain Controller, DNS server, Global Catalog server
OS: Windows Server 2012 Datacenter

Computer FQDN: EX01.fabrikam.com
IP address /network: 192.168.2.11/24
Roles: Exchange Server 2013 (Mailbox and Client Access server roles)
OSWindows Server 2012 Datacenter (Full installation)

To install Exchange Server 2013, the forest functional level of Active Directory must be Windows Server 2003 or higher.

You cannot install Exchange Server 2013 in Windows Server 2012 core version, minimal server interface.

Prerequisites tools for Exchange Server 2013 on Windows Server 2012
The following components must be installed in Windows Server 2012 before installing Exchange Server 2013 (Mailbox and Client Access server roles).

1. On Ex01, log in as Domain Administrator.
2. Launch "PowerShell".
3. Perform "Install-WindowsFeature RSAT-ADDS, 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 -Restart" to install required roles and features of Exchange 2013.


4. After the above roles and features have been installed, install the following software in EX01.

Installing Exchange Server 2013
Assuming that D drive is the DVD-Rom.

1. On Ex01, log in as Domain Administrator.
2. Insert Exchange Server 2013 DVD.
3. Launch "Command Prompt" as administrator.
4. Navigate to D:\, perform "Setup.exe /IAcceptExchangeServerLicenseTerms /ps" to extend Active Directory schema for supporting Exchange 2013.


5. Perform "Setup.exe /IAcceptExchangeServerLicenseTerms /p /on:Fabrikam" to prepare Exchange Organization.


6. Perform "Setup.Exe /IAcceptExchangeServerLicenseTerms /pd" to prepare the domain.


7. Perform "Setup.Exe /IAcceptExchangeServerLicenseTerms /mode:install /r:mb, ca /MdbName:fabrikam_db01" to install Exchange 2013 with Mailbox and Client Access server role.



Remark: Using Exchange 2013 Unattended Setup, we can customize the mailbox database name, database file path, log file path...

As a result, Exchange 2013 was installed successfully.

Reference:

This posting is provided “AS IS” with no warranties, and confers no rights!

Thursday, December 27, 2012

Typical Installation of Exchange Server 2013 RTM on Windows Server 2008 R2

I will install Exchange 2013 with Mailbox and Client Access server roles in the following lab environment.

Computer FQDN: DC01.contoso.com
IP address /network: 192.168.1.10/24
Roles: Domain Controller, DNS server, Global Catalog server
OS: Windows Server 2008 R2 Enterprise

Computer FQDN: EX01.contoso.com
IP address /network: 192.168.1.11/24
Roles: Exchange Server 2013 (Mailbox and Client Access server roles)
OS: Windows Server 2008 R2 Enterprise (Full installation)

To install Exchange Server 2013, the forest functional level of Active Directory must be Windows Server 2003 or higher.


You cannot install Exchange Server 2013 in Windows Server 2008 R2 core version.


Prerequisites tools for Exchange Server 2013 on Windows Server 2008 R2

The following components must be installed in the Window Server 2008 R2 before installing Exchange Server 2013 (Mailbox and Client Access server roles).

1. On EX01, log in as Domain Administrator.

2. Launch "PowerShell".
3. Perform "Import-Module ServerManager".
4. Perform "Add-WindowsFeature RSAT-ADDS, Desktop-Experience, NET-Framework, NET-HTTP-Activation, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Web-Server, WAS-Process-Model, Web-Asp-Net, 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-Ext, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI -Restart" to install required roles and featires of Exchange 2013.

 
5. After the above roles and features have been installed, install the following software in EX01.


Preparing Active Directory and Domains
Before installing Exchange Server 2013 in the Active Directory, we need to update the Active Directory Schema first. To update Active Directory Schema, we need to log in as a user which is a member of Schema Admins, Domain Admins and Enterprise Admins. 

In my lab environment, there is 1 domain which is the forest root domain. Domain Administrator also a member of Schema Admins, Domain Admins and Enterprise Admins.

Remark: If the setup command is performed in DC01, DC01 must be installed .NET Framework v4 or later and Windows Management Framework 3.0.


Assuming that D drive is the DVD-Rom.

1. On EX01, log in as Domain Administrator.
2. Insert Exchange Server 2013 DVD.
3. Launch "Command Prompt" as administrator.
4. Navigate to D:\, perform "Setup.Exe /IAcceptExchangeServerLicenseTerms /ps" to prepare the Schema for Exchange 2013.
 


5. Perform "Setup.Exe /IAcceptExchangeServerLicenseTerms /p /on:Contoso" to create Exchange and Exchange organization container in Active Directory.


6. Perform "Setup.Exe /IAcceptExchangeServerLicenseTerms /pd" to prepare the domain.


Installing Exchange Server 2013
1. On EX01, log in as Domain Administrator.
2. Insert Exchange Server 2013 DVD.
3. Click "Run Setup.EXE".


4. On "Check for Updates?" window, select "Don't check for updates right now"


5. Click "next".
6. On "Introduction' window, click "next".


7. On "License Agreement" window, select "I accept the terms in the license agreement", click "next".


8. On "Recommended Settings" window, select "Use recommended settings", click "next".


9. On "Server Role Selection" window, check "Mailbox role" and "Client Access role".


10. Click "next".
11. On "Installation Space and Location" window, click "next".


12. On "Malware Protection Settings" window, select "Yes" to disable malware scanning.


13. Click "next".
14. On "Readiness Checks" window, click "install".


15. On "Setup Completed" window, click "finish".


16. Restart EX01.

As a result, Exchange 2013 was installed in EX01 successfully.
 
Reference:




This posting is provided “AS IS” with no warranties, and confers no rights!

Tuesday, July 17, 2012

Exchange Server 2013 preview

Microsoft announced Exchange Server 2013 Preview on Technet. There are some changes in it like "Exchange Administration Center". This a new management console of Exchange Server 2013 and it replaces the Exchange Management Console (EMC) and the Exchange Control Panel (ECP). Exchange Administration Center is the web-based management console in Microsoft Exchange Server 2013 Preview.


Reference:
Exchange Administration Center
http://technet.microsoft.com/en-us/library/jj150562(v=exchg.150)

The major architectural change of Exchange Server 2013 is the server roles has been reduced to two: the Client Access Server and the Mailbox Server.

Reference:
Client Access Server
http://technet.microsoft.com/en-us/library/dd298114(v=exchg.150)

If you would like to learn more, please visit the following web sites:
Download Microsoft Exchange Server 2013 Preview

Exchange Server 2013 Preview

This posting is provided “AS IS” with no warranties, and confers no rights!

Wednesday, October 26, 2011

How to suppress the AutoDiscover redirect warning in Outlook 2007/2010/2013

After setting up the SRV record for Autodiscover service, launching Outlook 2010 or Outlook 2013, users may get the following warning.

Allow this website to configure user@domain server settings?

http://<autodiscover url>

Your account was redirected to this website for settings.
You should only allow settings from sources you know and trust.


To solve this problem, an administrator needs to add a registry setting for users.

I will use Group Policy Preferences to deploy the registry setting for users.

1. At DC01, log in as Domain Administrator.
2. Launch "Group Policy Management Console".
3. Right-click the GPO which is assigned to the users using Outlook 2010,  select "Edit".


4. Expand "User Configuration > Preferences > Windows Settings > Registry".
5. Right-click "Registry", select "New > Registry Item".
6. Next to "Action", select "Update".
7. Next to "Hive", select "HKEY_CURRENT_USER".
8. Next to "Key Path", type "Software\Microsoft\Office\14.0\Outlook\Autodiscover\RedirectServers".
9. Next to "Value name", type "<HTTPS server to which Autodiscover can be redirected>".

Remark: The Key path is 14.0 for Outlook 2010 and 15.0 for Outlook 2013.

Example:
imail.contoso.com

10. Next to "Value type", select "Reg_SZ".


11. Click "OK".
12. Close "Group Policy Management Editor" and "Group Policy Management Console".

After assigned the GPO, launching Outlook 2010, users don't get the warning.

Remark: If your environment is more than 1 Autodiscover record, you have to add each one.

Reference:
How to suppress the AutoDiscover redirect warning in Outlook 2010 and Outlook 2013

You cannot suppress the Autodiscover redirect warning in Outlook 2007
http://support.microsoft.com/kb/956528

This posting is provided "AS IS" with no warranties, and confers no rights!