Exchange Server Share

August 5, 2009

Exchange 2007: OWA Themes Selection

Filed under: Exchange,Exchange 2007,OWA,PowerShell — Amit Tank @ 5:14 pm
Tags: , , ,

End-user can choose the OWA appearance from 4 different themes available by default in Exchange 2007 SP1.

Users need to go to, Options –> General Settings –> Appearance –> Select Anyone…

  • Seattle Sky (Default OWA Theme)
  • Carbon Black
  • Xbox®
  • Zune

Q: What to do if this option is not visible in OWA?
A: This options is visible only if ThemeSelectionEnabled option enabled on OWA virtual directory. You can verify it with below cmdlet.

Get-OwaVirtualDirectory "owa (default web site)" | FL Name, ThemeSelectionEnabled

If value of ThemeSelectionEnable option shows False, you can set it to true with below cmdlet.

Set-OwaVirtualDirectory "owa (default web site)" –ThemeSelectionEnabled $True

Q: What to do if you want to force anyone of the theme globally for all users?
A: You can set the theme globally for all users with “DefaultTheme” parameter of Set-OwaVirtualDirectory cmdlet.

Question is how do we give the name of theme since powershell doesn’t support special character available in the name of themes, like Xbox® & Zune™. Instead of giving name of theme we can give the directory name of the theme where the files of a theme are located.

You can find all theme directories at “C:\Program Files\Microsoft\Exchange Server\ClientAccess\Owa\8.1.xxx.x\themes” (where xxx.x differs based on the SP & UR installed).

Directory Name Theme
Base Seattle Sky
1 Carbon Black
2 Xbox®
3 Zune

So we can pass the directory name in the “DefaultTheme” parameter of Set-OwaVirtualDirectory cmdlet to select the default theme globally. To select Xbox theme globally we can run below cmdlet and restart the IIS service to make it effective.

Set-OwaVirtualDirectory "owa (default web site)" -DefaultTheme 2 -ThemeSelectionEnabled $False
IISReset /NoForce

Q: What happens if we don’t disable Theme Selection while setting up specific theme globally?
A: You would have seen that I added a parameter “ThemeSelectionEnabled” with value $False to disable Theme Selection while setting up OWA theme globally.

If ThemeSelectionEnable option is set to $True while setting up OWA theme globally, it applies only on the users who login first time in OWA, and for the users who have already login, don’t see new theme applied and they need to choose from Options –> General Settings manually.

But ThemeSelectionEnable optionis set to $False, new theme applies to all users in the organization.

Default OWA Themes

Seattle Sky

Carbon Black

Xbox®

Zune

July 27, 2009

Exchange 2007: Database Statistics in Powershell

Many times we need to find number of mailboxes in each database and the size of the database (EDB file) of all servers in an Exchange 2007 environment. With PowerShell, it is fairly simple to grab in a single line.

1.  How do we find number of mailboxes in each database?

On Screen: Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Number Of Mailboxes";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-Table -AutoSize

Export to CSV: Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Number Of Mailboxes";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Export-Csv C:\ServerStat-1.csv

2.  How do we find number of mailboxes and size of EDB file for each Database?

On Screen: Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Size (GB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1048576KB; [math]::round($size, 2)}}, @{Name="Size (MB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1024KB; [math]::round($size, 2)}}, @{Name="No. Of Mbx";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-table -AutoSize

Export to CSV: Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Size (GB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1048576KB; [math]::round($size, 2)}}, @{Name="Size (MB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1024KB; [math]::round($size, 2)}}, @{Name="No. Of Mbx";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Export-CSV C:\ServerStat-2.csv

May 30, 2009

Exchange Update Rollup Installation. It is not Nightmare!!!

Many people feel that installation of Exchange Update Rollup is a nightmare, does it really? Well, It doesn’t, if you take certain steps of prevention.

Here are some of the myths which prevents from getting sleepless night for Update Rollups installation.

Known Issues & Pre Installation Checklist

 

1. Previous Interim Update (IU) Exists, Remove/Uninstall

Microsoft releases critical IUs for Exchange outside the Rollup schedule and can be obtained by contacting PSS. If you attempt to install the Rollup prior to removing the IU, you may get an error.

Prevention Step: Any installed IUs must be removed prior to applying a Rollup.

2. Permission Required

It is recommended to use the same account which was used to install Exchange server while installing Update Rollups.

If you have to use different account then make sure that you have highest permission like Exchange Organization Admin and a member of Local Admin group of Exchange server.

3. Do you have CAS-CAS Proxying deployed?

Apply the update rollup to the Internet-facing Client Access servers before you apply the update rollup to the non-Internet-facing Client Access servers.

4. Do you have Outlook Web Access customization?

When you apply an update rollup package, the update process will copy over the OWA files if it is necessary. If you have modified the Logon.aspx file or other OWA files, the customizations will be overwritten to ensure that OWA is updated correctly.

Prevention Step: Always make a backup copy of any customized Outlook Web Access files before you apply the update rollup.

After you apply the update rollup package, re-create Outlook Web Access customization in Logon.aspx.

5. Status of IPv6

Do you have IPv6 enabled in “Local Area Connection”? If you have IPv6 network and ticked/enabled in Local Area Connection, then it is fine.

But if you do NOT have IPv6 network and somehow unticked/disabled in Local Area Connection, follow below steps before Update Rollup installation.

  • Enable IPv6 in Local Area Connection.
  • Use Registry Editor and add registry key to completely disable IPv6 on a Windows Server 2008 computer as per KB952842

This may cause Exchange services to start or from changing ‘Startup Type’ (disabled to Automatic) after installation.

6. Lack of Internet Connectivity

You may experience long installation times and you may receive the following message:
“Creating Native images for .Net assemblies”

This issue occurs because the Exchange server issues network requests to connect to http://crl.microsoft.com/pki/crl/products/CodeSigPCA.crl and look up the certificate revocation list at NGEN time for each assembly that it compiles to native code.

Because the Exchange server is not connected to the Internet, each request must wait to timeout before moving on.

Prevention Step: Turn off the Check for publisher’s certificate revocation option on the server that is being upgraded. Follow these steps:

In Windows Internet Explorer –> Tools –> Internet Options –> Advanced tab
In the Security section, uncheck or clear the box for below tow options

“Check for publisher’s certificate revocation”
“Check for server certificate revocation”

It is considered safe to clear this security option in Internet Explorer if the computer is in a tightly controlled environment. After the setup has completed, turn on the Check for publisher’s certificate revocation option again

image

Further information can be found here…
Exchange 2007 managed services might time out during certificate revocation checks
http://msexchangeteam.com/archive/2008/07/08/449159.aspx

7. Managed code services may not start after you install this update rollup

This problem occurs because you do not have a Microsoft .NET Framework common language runtime (CLR) build that supports the generatePublisherEvidence configuration setting.

Prevention Step: If you are using the .NET Framework 2.0, install one of the following software updates:

.NET Framework 2.0 Service Pack 1
Problems that are fixed in the .NET Framework 2.0 Service Pack 1

Software update 936707 with CRL build 2.0.50727.876
FIX: A .NET Framework 2.0 managed application that has an Authenticode signature takes longer than usual to start

Software update 942027 with CRL build 2.0.50727.926
FIX: You may notice that the memory load is very high when you run an application that is built on the .NET Framework 2.0

Refrence: Exchange Server 2007 managed code services do not start after you install an update rollup for Exchange Server 2007
http://support.microsoft.com/kb/944752

8. Exchange Best Practice Analyzer

Run ExBPA regularly to find any misconfiguration, problems or standard recommendation from Microsoft on your Exchange environment.

It is also recommended to run it before installation UR and correct the errors if shows in result.


Troubleshooting Update Rollup Installation Failure

Now what if UR installation failed, where to start looking for the cause or reason behind failure?

The Exchange Software Updates forum is available to get assistance if you come across with any update rollups installation issue. Microsoft engineers monitor the forum and assist you, but what they need to troubleshoot the issue? Information on your Exchange environment, how you are installing update rollup, and errors come up in various log files. These all things gives you and them hints to get resolution while troubleshooting.

Here are some of the logs to start investigation.

  1. Look into Event Log for any error related to UR installation.
  2. Enable Verbose MSI Logging to generate setup log and look into it for any error.
  3. ServiceControl.log available at C:\ExchangeSetupLogs.
  4. UpdateOwa.log available at C:\ExchangeSetupLogs.

1. Look into Event Log for any error

This is the starting place of forensic lab :), you may see some MSI related or any other errors which might have some numbers and with it setup would have failed.

Here is an example…

Event Type: Error
Event Source: MsiInstaller
Event Category: None
Event ID: 1024
Description:
Product: Microsoft Exchange Server – Update ‘Update Rollup 8 for Exchange Server 2007 Service Pack 1 (KB968012) 8.1.375.2′ could not be installed. Error code 1603.

Windows Installer can create logs to help troubleshoot issues with installing software packages. Use the following link for instructions on turning on logging support: http://go.microsoft.com/fwlink/?LinkId=23127

Error code 1603 is pretty generic in MSI installation and to look further deep we need to enable verbose MSI logging. Question comes, how? Ok, let’s discuss it in next portion.

2. Enable Verbose MSI Logging to generate setup log

We can enable MSI verbose logging to get extensive details of update rollup installation with below switches…

Exchange2007-KB<kb # of Rollup>-x64-EN.msp /lxv* c:\LogName.log

Let’s take an example of Exchange 2007 SP1 UR8 which was released sometimes back. I am executing it with below command.

Exchange2007-KB968012-x64-EN.msp /lxv* c:\SP1UR8.log

image

This will generate extensive log of UR installation and log an activity of each and every step.

image 

You can open this log and check for errors which may shed some light on why the installation failure occurred. If you create a thread at Exchange Software Updates forum or log a call with Microsoft PSS, they will ask for this file anyway.

3. ServiceControl.log available at C:\ExchangeSetupLogs

This file keeps the log of service ‘Status’ and ‘Startup Type’ changes happened by ServiceControl.ps1 script during UR installation.

We may find the cause of service, if stopped or disabled during UR installation.

image

4. UpdateOwa.log available at C:\ExchangeSetupLogs

This file keeps the log of OWA changes performed by UpdateOWA.ps1 during UR installation.

image

Here is an example of UpdateOwa.log file generated during successful UR8 installation but we may find the cause here if OWA comes up with errors after UR installation.

image 

We can also find UpdateOWA.PS1 script under Program Files\Microsoft\Exchange Server\Bin directory which can be run to correct OWA errors came after UR installation.

image

May 3, 2009

Exchange 2010 Beta1: Bunch of FAQs, Tips & Known Issues

Exchange 2010 has many new features, advance administration methods, significant changes in Information Store to give better performance, new and simple high-availability approach and role based access control features for permissions. Sounds great so who doesn’t want to start testing this early version, Exchange 2010 Beta1.

As we know that Exchange 2010 product is still under development and being optimized, so here are certain FAQs, Tips and Known Issues which might help you to evaluate it easily and save your time while finding solutions or workarounds on some common queries and issues.

=======================================================

1. Production Use?

First question comes in your mind while testing Exchange 2010 Beta1 is, can I use Exchange 2010 Beta 1 in production?
~ Answer is "NO", here is an official article from Exchange Team on why you shouldn’t use Beta in production environment. 
Reference: "Can I install Exchange 2010 Beta in production?"

2. Windows 2008 Editions

~ Exchange 2010 can be installed on Windows 2008 & Windows 2008 R2 but wait…

2.1 Can I install Exchange 2010 on Windows 2008 Server Core?
~ No, Exchange 2010 can NOT be installed on Windows 2008 Server Core, it requires full edition of Windows 2008 Standard or Enterprise.
~ Reason is, Exchange requires some of the components which are not supported on Windows 2008 Server Core, example is .Net Framework.

2.2 Can I use Exchange 2010 Beta 1 with Windows 2008 R2?
~ Yes, you can use Windows 2008 R2 but read below couple of points.

2.2.1 Which build of Windows 2008 R2 I can use for Exchange 2010 testing?
Exchange 2010 Beta1 PowerShell & WinRM are incompatible with post 7000 build of Windows R2 and requires wire-level change so it can be installed only on build 7000 of R2 and not on later builds so keep in mind if you are planning to install it on R2.

2.2.2 You may get below error while accessing EMC on Windows 2008 R2.

Connecting to remote server failed with the following error message : The WinRM client received an HTTP server error status (500), but the remote service did not include any other information about the cause of the failure. It was running command ‘Discover-ExchangeServer -UseWIA $true’.

This is know issue and to solve it follow below two steps…
     ~ Disable “Anonymous Authentication” on PowerShell virtual directory of IIS.
     ~ Enable remote powershell for user with below cmdlet in “Exchange Management
        Shell (Local Powershell)”
        Set-User “User Name” -RemotePowerShellEnabled $true

3. Coexistence

Coexistence with legacy Exchange versions (2007or 2003) is NOT supported with Exchange 2010 Beta1. We may need to wait for next release of Exchange 2010.

4. Installation

4.1 Domain & Forest Functional Levels of your AD environment.

Exchange 2010 requires Domain and Forest (both) Functional Levels to at least Windows 2003. You can refer below articles to raise Functional Levels of your AD to Windows 2003.
References: Raise the Domain Functional Level 
                     Raise the Forest Functional Level

4.2 Setup fails at Hub Transport Server role installation with below error.

The execution of: “$error.Clear(); if ($RoleStartTransportService) { start-SetupService -ServiceName MSExchangeTransport }”, generated the following error: “Service ‘MSExchangeTransport’ failed to reach  status ‘Running’ on this server.”

~ This could be because you have disabled IPv6 in Local Area Connection. Correct method to disable IPv6 is with Registry Key and remove the entry from hosts file.
Refer below article.

Reference: Exchange 2010: Hub Transport Role Installation Fails

4.3 You get below error while running installation.

"An error occurred while copying file D:\Exchange2010-Beta1-x64\…\templates editor.msc"

Workaround:
~ Copy Setup dump to local hard drive and execute Exchange 2010 setup from there.
~ Make sure that account, being used to run Exchange 2010 setup, has Domain, Enterprise and Schema Admin rights.

4.4 You may get below error while installing additional Mailbox Server in Exchange 2010 Beta1 environment.

"Object reference not set to an instance of an object"

~ This might be due to "Admin Audit Log Agent" Cmdlet Extension Agents enabled in your environment. This will be resolved in later builds but current Workaround for this problem is disable Admin Audit Log Agent with below cmdlet.
          Disable-CmdletExtensionAgent "Admin Audit Log Agent"
References:
Understanding Cmdlet Extension Agents
Disable a Cmdlet Extension Agent

5. Exchange Management Console / Shell Tips

5.1 When you try to access EMS/EMC with newly created administrator account, you get below error.
EMS
:

Connecting to remote server failed with the following error message : Access is denied.
At C:\Program Files\Microsoft\Exchange Server\V14\bin\ConnectFunctions.ps1:154 char:28
+         $global:r = new-pssession <<<<  -connectionURI
https://$fqdn/powershell -ConfigurationName Microsoft.Exchange -Authentication NegotiateWithImplicitCredential -SessionOption $sessionOption #-erroraction  silentlycontinue
    + CategoryInfo          : OpenError: (System.Manageme….RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : RemoteRunspaceOpenFailed

EMC:

Connecting to remote server failed with the following error message: Access is denied. It was running command ‘Discover-ExchangeServer -UseWIA $true’

Solution:
You need to enable Remote Powershell for newly created Admin account with below cmdlet.
          Set-User “User Name” -RemotePowerShellEnabled $true

5.2 When you click on CAS Server properties you may get below error.

—————————
Microsoft Exchange
—————————
Unable to create IIS (Internet Information Service) directory entry. Error Message is: Access is denied.
. HResult = -2147024891 It was running command ‘get-ActiveSyncVirtualDirectory’.

This is know issue with current Beta1 and you need to add "Microsoft Exchange Security Groups\ Exchange Trusted Subsystem" group to Local Administrators group on all Exchange servers and Restart the CAS server.

5.3 If you create User with ADU&C and enable mailbox with EMC/EMS, now while removing the same mailbox in EMC you get below error.

Active Directory operation failed on Server1.Contoso.com. This error is not retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-03151D12, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0

Solution: You need to use EMS to remove the mailbox with Remove-Mailbox cmdlet.

5.4 How to manage mailbox folder permission with EMS.

This is one of the New Mailbox and Recipient Functionality in Exchange 2010. Let’s take an example here, if you want permission on a folder named "SharedFolder1" of  User1′s mailbox to User2 in Exchange Management Shell.

~ You can use Add-MailboxFolderPermission cmdlet. But what is the format of folder name which we should pass in cmdlet to give permission? So, format should be blow.

Add-MailboxFolderPermission -Identity User1:\SharedFolder1 -AccessRights Editor -User User2

6. Mailbox Access & Client Issues

6.1 How can I access Exchange 2010 mailbox?
~ You can access mailbox with MAPI clients like Outlook 2007 or 2003, OWA premium experience with IE, FireFox & Safari browser or Windows Mobile 5.0, 6.0 devices.

6.2 Outlook 2007 is not able to access mailbox and/or unable to start "MSExchange Rpc Client Access" Service.
This is know issue and it will be corrected in later build. Workaround is to add below two registry keys on Exchange 2010 Server.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ MSExchangeIS\ParametersSystem]
"Mapi Rpc Endpoint Registration"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ MSExchangeRPC\ParametersSystem]
"ExecutionFlags"=dword:00000002

6.3 Outlook 2003 is unable to access mailbox.
RPC/MAPI Mailbox access with Outlook 2003 may not work while testing in Beta1, you need to use Outlook 2007 to gain mailbox access. You may use RPC/HTTPs method with Outlook 2003 to access Mailbox.

7. Public Folders Access & Client Issues

7.1 Public Folder Support in Exchange 2010

Public Folder is fully supported in Exchange 2010 life cycle as Exchange team is already announced earlier.
Reference: Updated Exchange Public Folder Guidance
But you need to start looking for other alternative if PFs are being heavily used in your organization, Share Point is a good alternative from that stand point.

7.2 Where is Public Folder option in OWA?

Public Folder, Notes, Tasks, Views etc… modules are not included in current Beta, these will be available in later builds.

7.3 Unable to access Public Folder in Outlook 2007 and you get below error.

"Cannot expand the folder. The set of folders cannot be opened. Your profile is not configured"

Public Folder access has problem with MAPI/RPC Outlook 2007 profile and can not be accessible, this will be corrected in later build.

8. Outlook Web Access

8.1 Certain features (like drag and drop items) are not yet fully implemented in this version of Beta to work on Firefox and Safari web browser so you can still find some gaps and which will be covered by RTM.

8.2 OWA, where is integrated IM and Presence functionality?
~ IM & Presence functionality is not yet included into Beta1 so we may need to wait for next build releases.
~ However You need to have Office Communications Server 2007 R2 installed in your environment to have basic IM functionality then you can configure an integration between OCS and Exchange OWA to connect together and give you status indication (presence information) of other persons, have chat with them etc…

8.3 OWA gives blank display with below in address bar
"https://localhost/owa/auth/logon.aspx?url=https://localhost/owa/&reason=0"
You may need to reinstall CAS server role and IIS.

9. Exchange Control Panel (ECP)

9.1 When you click on Options in OWA to login on ECP, again it asks for authentication.
~ This is expected behaviour in Beta1 because ECP virtual directory doesn’t support FBA yet. This will be corrected by RTM releases of Exchange 2010.

9.2 Authentication fails when you click on Options button in OWA and you get below error.

Unexpected Error – An error occurred and your request couldn’t be completed. Please try again.

~ This happens if you are accessing OWA with FQDN of your OWA address like  https://mail.domainname.com/owa but didn’t set urls on virtual directories.
~ You need to set InternalURL to https://FQDNofExchange/OWA and ExternalURL to https://mail.domain.com/owa of OWA virtual directory with Set-OWAVirtualDirectory cmdlet.

Set-OWAVirtualDirectory “Owa (Default Web Site)” –InternalURL “https://FQDNofExchange/owa” –ExternalURL “https://mail.domain.com/owa”

~ Similarly for ECP directory with Set-ECPVirtualDirectory cmdlet. Once these are configured it prompts for passwords (Refer #9.1) and authentication redirects to ECP.

Set-ECPVirtualDirectory “Ecp (Default Web Site)” –InternalURL “https://FQDNofExchange/ECP” –ExternalURL “https://mail.domain.com/ECP”

10. Archive or Alternate Mailbox

10.1 How to create Archive Mailbox?
You can use below cmdlet to create archive mailbox. In later builds you can create archive mailbox in EMC too.

New-AlternateMailbox -Name User-Archive -Mailbox UserName -Type Archive
Reference: New-AlternateMailbox

10.2 Where will be Archiving mailbox created?
~ Archive mailbox will be created automatically on the same mailbox database where primary mailbox of user is available.

10.3 Does discoveries feature work on Archive mailbox to find emails by Compliance Officer?
Yes, Compliance Officer can search emails from Archive Mailbox. Exchange Control Panel (ECP) is an interface for Discovery feature of Exchange 2010.

10.4 How to access Archive Mailbox?
It can be accessed via OWA or Outlook 2010 but unfortunately OWA doesn’t have that feature included in current Beta1 to access Archive Mailbox and beta version of Outlook 2010 will be released in Q3 so we may need to wait until next build of Exchange 2010 available.

11. MailTips

11.1 What are supported clients for MailTips feature?
~ MailTips are supported in OWA and Outlook 2010.
~ But current Exchange 2010 public beta doesn’t have this feature module ported in OWA and Outlook 2010 Beta has not released yet so we may need to wait for next releases of Exchange 2010…
Reference: Introducing MailTips

12. High Availability & Recovery

12.1 Database Availability Groups (DAG)

12.1.1 You get below error while adding a server into DAG by using EMC.

Insufficient permissions to view the network shares on machines <FileShareWitness>. Error code 5.

~ This is known issue, remote powershell can add a server in DAG since it requires to install Windows Failover Cluster (WFC) components which are not accessible through remote powershell.
~ Use "Exchange Management Shell (Local Powershell)" to add the server into DAG with Add-DatabaseAvailabilityGroupServer cmdlet.

Add-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer E2010SRV1

Reference: Add-DatabaseAvailabilityGroupServer

12.2 What is the alternative of Recovery Storage Group (RSG)?

~ As we know that there Storage Group concept is deprecated and we have only Databases so now we can use Recovery Databases for recovery purpose.
~ Here are cmdlets to create Recovery Database and to restore mailbox.
New-MailboxDatabase -Recovery <DatabaseIdParameter> –Server <StoreMailboxIdParameter>
Restore-Mailbox -Identity <MailboxIdParameter> -RecoveryDatabase <DatabaseIdParameter> -RecoveryMailbox <StoreMailboxIdParameter>

References:
New-MailboxDatabase
Restore-Mailbox

=======================================================

Hope this article helps you to test Exchange 2010 Beta1 with greater comfortably and yeh, most of these know issues will be corrected in later builds or by RTM release…

May 1, 2009

Exchange 2010 Beta1: Setup Switches

Here is the dump of Exchange 2010 Setup Switches help…

======================================================

C:\Exchange2010-Beta1-x64>setup /?

Welcome to Microsoft Exchange Server 2010 Setup Help
   Please type one of the below options for detailed help on each subject:

     Setup.com /help:Install         – Installing Exchange Server roles.
     Setup.com /help:Uninstall       – Uninstalling Exchange Server roles.
     Setup.com /help:Upgrade         – Upgrading Exchange Server roles.
     Setup.com /help:RecoverServer   – Recovering an existing Exchange Server.
     Setup.com /help:PrepareTopology – Preparing your topology for Exchange.
     Setup.com /help:Delegation      – Delegated server installations.
     Setup.com /help:UmLanguagePacks – Adding/removing UM language packs.
     Setup.com /help:LanguagePacks   – Adding language packs.

======================================================

C:\Exchange2010-Beta1-x64>setup /help:Install
Microsoft Exchange Server 2010 Setup Parameter Help

Install/Uninstall Server Role Usage:
    Setup.com /mode:<setup mode> /roles:<roles to install> [/OptionalParameters]

–Install/Uninstall Required Parameters–

/mode, /m
         Specifies the operation to perform:
         . Install:    (Default)–Installs one or more server roles.
         . Uninstall:  Removes one or all installed server roles.

/roles, /role, /r
         Specifies which server roles to install or uninstall:
         /role:Mailbox
         /roles:Mailbox, HubTransport

         The following are the valid roles:
         . HubTransport, HT, H
         . ClientAccess, CA, C
         . Mailbox, MB, M
         . UnifiedMessaging, UM, U
         . EdgeTransport, ET, E
         . ManagementTools, MT, T

–Install/Uninstall Optional Parameters–

[/OrganizationName, /on]
         /OrganizationName:MyCompany

         * This parameter is required if the Exchange organization
         hasn’t been created.

[/TargetDir, /t]
         Specifies the location to install Exchange Server 2010 files.
         Default: %programfiles%\Microsoft\Exchange Server

[/SourceDir, /s]
         Specifies the path to the Exchange DVD.

[/UpdatesDir, /u]
         Updates from the directory specified will be installed during
         setup.

[/DomainController, /dc]
         Specifies the domain controller that setup will use to read
         and to write to Active Directory. Netbios or FQDN format can be used.

[/?]
         Displays the help for setup.

–Install/Uninstall Advanced Optional Parameters–

[/AnswerFile /af]
        Specifies the location of an answer file that contains advanced
   parameters for setup.
        The format for the answer file is <Key>=<Value>
        Only the advanced parameters are valid for the answer file.

[/DoNotStartTransport]
Edge Transport Service will not be started during setup when this
  parameter is specified.
     Roles: Hub Transport, Edge Transport

[/EnableLegacyOutlook]
Specifies that legacy outlook clients can connect to the Exchange
   2007 servers.
       Roles: Mailbox
      Remarks: This parameter can only be specified during the first
      Exchange 2010 Mailbox server installation to an organization.

[/LegacyRoutingServer]
         Specifies the name of a legacy Exchange server that will be used
      to route messages to.
       Roles: Hub Transport
        Remarks: This parameter can only be specified during the first
     Exchange 2010 Hub Transport server installation to an organization.

[/EnableErrorReporting]
         This enables the Exchange server to automatically submit critical
         error reports. Microsoft uses this information to diagnose problems
         and provide solutions.

        This parameter applies to installation of all server roles.

[/CustomerFeedbackEnabled]
         Specify whether to participate in Customer Experience Improvement Progr
am.
         The value can be True or False.

[/Industry]
         The industry type of the organization.

[/Mdbname]
         The name of the default mailbox database.
            Roles: Mailbox

[/DbFilePath]
         The full path to the edb file.
              Roles: Mailbox

[/LogFolderPath]
         The folder path to the directory where logs should be placed.
            Roles: Mailbox

[/NoSelfSignedCertificates]
        Specifies that setup should skip creating self signed certificates
        if no other valid certificate is found for use in SSL/TLS sessions.
       Roles: Client Access, Unified Messaging

[/AdamLdapPort]
        LDAP Port to use for Edge Transport server role AD/AM instance.
   Roles: Edge Transport

[/AdamSslPort]
        SSL Port to use for Edge Transport server role AD/AM instance.
       Roles: Edge Transport

======================================================

C:\Exchange2010-Beta1-x64> Setup.com /help:Uninstall
Microsoft Exchange Server 2010 Setup Parameter Help

Install/Uninstall Server Role Usage:
    Setup.com /mode:<setup mode> /roles:<roles to install> [/OptionalParameters]

–Install/Uninstall Required Parameters–

/mode, /m
         Specifies the operation to perform:
         . Install:    (Default)–Installs one or more server roles.
         . Uninstall:  Removes one or all installed server roles.

/roles, /role, /r
         Specifies which server roles to install or uninstall:
         /role:Mailbox
         /roles:Mailbox, HubTransport

         The following are the valid roles:
         . HubTransport, HT, H
         . ClientAccess, CA, C
         . Mailbox, MB, M
         . UnifiedMessaging, UM, U
         . EdgeTransport, ET, E
         . ManagementTools, MT, T

–Install/Uninstall Optional Parameters–

[/OrganizationName, /on]
         /OrganizationName:MyCompany

         * This parameter is required if the Exchange organization
         hasn’t been created.

[/TargetDir, /t]
         Specifies the location to install Exchange Server 2010 files.
         Default: %programfiles%\Microsoft\Exchange Server

[/SourceDir, /s]
         Specifies the path to the Exchange DVD.

[/UpdatesDir, /u]
         Updates from the directory specified will be installed during
         setup.

[/DomainController, /dc]
         Specifies the domain controller that setup will use to read
         and to write to Active Directory. Netbios or FQDN format can be used.

[/?]
         Displays the help for setup.

–Install/Uninstall Advanced Optional Parameters–

[/AnswerFile /af]
        Specifies the location of an answer file that contains advanced
   parameters for setup.
        The format for the answer file is <Key>=<Value>
        Only the advanced parameters are valid for the answer file.

[/DoNotStartTransport]
Edge Transport Service will not be started during setup when this
  parameter is specified.
     Roles: Hub Transport, Edge Transport

[/EnableLegacyOutlook]
Specifies that legacy outlook clients can connect to the Exchange
   2007 servers.
       Roles: Mailbox
      Remarks: This parameter can only be specified during the first
      Exchange 2010 Mailbox server installation to an organization.

[/LegacyRoutingServer]
         Specifies the name of a legacy Exchange server that will be used
      to route messages to.
       Roles: Hub Transport
        Remarks: This parameter can only be specified during the first
     Exchange 2010 Hub Transport server installation to an organization.

[/EnableErrorReporting]
         This enables the Exchange server to automatically submit critical
         error reports. Microsoft uses this information to diagnose problems
         and provide solutions.

        This parameter applies to installation of all server roles.

[/CustomerFeedbackEnabled]
         Specify whether to participate in Customer Experience Improvement Progr
am.
         The value can be True or False.

[/Industry]
         The industry type of the organization.

[/Mdbname]
         The name of the default mailbox database.
            Roles: Mailbox

[/DbFilePath]
         The full path to the edb file.
              Roles: Mailbox

[/LogFolderPath]
         The folder path to the directory where logs should be placed.
            Roles: Mailbox

[/NoSelfSignedCertificates]
        Specifies that setup should skip creating self signed certificates
        if no other valid certificate is found for use in SSL/TLS sessions.
       Roles: Client Access, Unified Messaging

[/AdamLdapPort]
        LDAP Port to use for Edge Transport server role AD/AM instance.
   Roles: Edge Transport

[/AdamSslPort]
        SSL Port to use for Edge Transport server role AD/AM instance.
       Roles: Edge Transport

======================================================

C:\Exchange2010-Beta1-x64>Setup.com /help:Upgrade
Upgrade Exchange Server Usage:
    Setup.com /mode:Upgrade [/OptionalParameters]

–Upgrade Required Parameters–
/mode, /m
         Specifies the operation to perform:
         Upgrade: Upgrades all installed servers roles.

–Upgrade Optional Parameters–

[/SourceDir, /s]
         Specifies the path to the Exchange DVD.

[/UpdatesDir, /u]
         Updates from the directory specified will be installed during
         setup.

[/DomainController, /dc]
         Specifies the domain controller that setup will use to read
         and to write to Active Directory. Netbios or FQDN format can be used.

[/DoNotStartTransport]
         Edge Transport Service will not be started during setup when this
         parameter is specified.
         Roles: Hub Transport, Edge Transport

======================================================

C:\Exchange2010-Beta1-x64>Setup.com /help:RecoverServer
Recover Exchange Server Usage:
    Setup.com /mode:RecoverServer [/OptionalParameters]

–Recover Exchange Server Required Parameters–
/mode, /m
         Specifies the operation to perform:
         RecoverServer: Recovers an existing Exchange server object.

–Recover Exchange Server Optional Parameters–

[/TargetDir, /t]
         Specifies the location to install Exchange Server 2010 files.
         Default: %programfiles%\Microsoft\Exchange Server\V14

[/UpdatesDir, /u]
         Updates from the directory specified will be installed
         during setup.

[/DomainController, /dc]
         Specifies the domain controller that setup will use to read
         and to write to Active Directory. Netbios or FQDN format can be used.

[/EnableErrorReporting]
         This enables the Exchange server to automatically submit critical
         error reports. Microsoft uses this information to diagnose problems
         and provide solutions.

[/DoNotStartTransport]
         Edge Transport Service will not be started during setup when this
         parameter is specified.
         Roles: Hub Transport, Edge Transport

======================================================

C:\Exchange2010-Beta1-x64>Setup.com /help:PrepareTopology
Prepare Topology Usage:
    Setup.com /PrepareAD [/CustomerFeedbackEnabled:<True or False>] [/Industry:<
The industry type of organization>] [/DomainController:<FQDN of DC>]
    Setup.com /PrepareSchema [/DomainController:<FQDN of DC>]
    Setup.com /PrepareDomain [/DomainController:<FQDN of DC>]
    Setup.com /PrepareDomain:<domainA,domainB> [/DomainController:<FQDN of DC>]
    Setup.com /PrepareAllDomains [/DomainController:<FQDN of DC>]
    Setup.com /PrepareLegacyExchangePermissions [/DomainController:<FQDN of DC>]

    Setup.com /PrepareLegacyExchangePermissions:<domainA> [/DomainController:<FQ
DN of DC>]

–Prepare Topology Required Parameters–

/PrepareLegacyExchangePermissions, /pl
        Prepares the permissions in a legacy forest.
Use this parameter only if you have Exchange 2000 or 2003 servers in your organ
ization.

/PrepareLegacyExchangePermissions:<domain FQDN>, /pl:<domain FQDN>
        Prepares the permissions for the specified domain.

/PrepareAD, /p
         Prepares the Active Directory forest for the Exchange installation.
       This will perform all the operations listed below in the local domain.

/PrepareSchema, /ps
       Prepares the Active Directory Schema for the Exchange installation.

/PrepareDomain, /pd
         Prepares the local domain for the Exchange installation.

/PrepareDomain:<domain FQDN>, /pd:<domain FQDN>
    Prepares the specified domain for the Exchange installation.

/PrepareAllDomains, /pad
         Prepares all domains in the forest for the Exchange
         installation.

–Prepare Topology Optional Parameters–

[/DomainController, /dc]
         Specifies the domain controller that setup will use to read
        and write to Active Directory. Netbios or FQDN format can be used.

======================================================

C:\Exchange2010-Beta1-x64>Setup.com /help:Delegation
Server Setup Delegation Usage:
    Setup.com /NewProvisionedServer:<ServerName> [/ServerAdmin:<Server Admin Gro
up Name>]
    Setup.com /RemoveProvisionedServer:<ServerName>
    Setup.com /ForeignForestFQDN:<ForestFQDN>

–Server Setup Delegation Required Parameters–

/NewProvisionedServer:<ServerName>, /nprs
         Creates a placeholder server object so that a delegated server admin ca
n
         run Exchange installation.

/RemoveProvisionedServer, /rprs
         Removes the provisioned server object.

/ForeignForestFQDN
         Creates another set of Exchange security groups in a separate forest.

–Server Setup Delegation Optional Parameter–

[/ServerAdmin, /sa]
         User or group to be granted permission as Server Administrator.
        You can only use this parameter with the /NewProvisionedServer parameter

======================================================

C:\Exchange2010-Beta1-x64>Setup.com /help:UmLanguagePacks
Adding/Removing Unified Messaging Language Packs:
     Setup.com /AddUmLanguagePack:<Cultures> [/SourceDir:<source>]
     Setup.com /RemoveUmLanguagePack:<Cultures>

–Add/Remove UM Language Pack Required Parameters–

/AddUmLanguagePack – Adds the language packs for the specified cultures.

/RemoveUmLanguagePack – Removes the installed lanugage packs.

–Add UM Language Pack Optional Parameter–

[/SourceDir,/s] – Location for the unified messaging language pack
   for the cultures specified. Valid with /addumlanguagepack
   parameter only.

[/UpdatesDir, /u] – Updates from the directory specified will be installed
        during setup.

   Usage Examples:
       Setup.com /AddUmLanguagePack:de-DE /s:d:\Downloads\UmLanguagePacks
        Setup.com /AddUmLanguagePack:de-DE,fr-FR,ja-JP /s:\\myshare\langpacks
    Setup.com /RemoveUmLanguagePack:de-DE,fr-FR
Setup.com /AddUmLanguagePack:de-DE /s:d:\Downloads /u:d:\Patches

   Remarks:
       en-US unified messaging language pack cannot be added/removed. It will
     be installed and uninstalled with the Unified Messaging role.
   These operations are only valid when Unified Messaging role is already
      installed on the server.

======================================================

C:\Exchange2010-Beta1-x64>Setup.com /help:LanguagePacks
Adding Language Packs:
     Setup.com /mode:install /LanguagePack:<full path to LanguagePackBundle.exe>

     Setup will install the languages contained in the bundle specified.

Upgrading with Language Packs:
     Setup.com /mode:upgrade /LanguagePack:<full path to LanguagePackBundle.exe>

     Setup will perform a product upgrade and additionally upgrade the languages
contained in the bundle specified.

Remarks:
   /mode:install must be used to initially install language packs
   You may upgrade language packs independently of the product by using install
mode
   Language Packs can only be uninstalled when the entire product is uninstalled
.

Next Page »

The Rubric Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 29 other followers