Search This Blog

Monday, 18 July 2011

ISA 2006 EE setup failed while initializing configuration agent Enterprise Array

Issue

Whist Trying to add an ISA 2006 Server/Node to an Existing Enterprise Array, You may receive the following error during the final stages of setup.

"setup failed while initializing configuration agent"


Reason
This is due to a non standard ISAPI or Web filter installed within the array or a  Corrupt Rule / Protocol within ADAM


Resolution
Temporally Remove the Non-Standard Filter via Add/remove programs. i.e Messagelabs Client Side Proxy, Websense Web Filter.,  Add the Node into the array, and re-Install Custom Filters

Further Debugging to Find Corrupt ADAM Object please refer to MS Blog.
http://blogs.technet.com/b/isablog/archive/2009/02/17/error-installing-a-replica-of-isa-server-2006-css.aspx - Ori Yosefi

Tuesday, 8 March 2011

Migrating from Enterprise Vault to Exchange 2010 SP1 Archiving - Takeaways

While I have a little down time, I thought I would feedback on some interesting points encountered during a recent Migration from Enterprise Vault 6 SP3 to Exchange 2010 On-Line Personal Archives and some areas what you will have to consider on any migration.  All in all it went very well and proves Microsoft  can offer a basic Archiving solution to customers who may feel EV is just A little OTT for them.

I have attached some useful command highlights that were used in migration process that I used and passed over to the customer which you may find of use.

So,  what were the pain points? All be it any pain that was encountered was down to short comings (Product Features) of EV that handicapped us in making the transition seamless.
1ST Challenge
The main challenge was the way EV stored and used Shortcuts, i.e. If a user moved a EV shortcut to a subfolder or another folder outside the “inbox”  the only thing that was moved was the shortcut, the
actual Item in the vault retained its position and hierarchy when it was first archived. So the problem here is that if we have users who had complex mailboxes and religiously moved stubs around  (which is always true for a few users)
that when we restored “directly” from the vault into the online archive we was restoring all the data in its original folder hierarchy.  Now this is just more of an inconvenience than anything but we all know how user perception is when moving a new system.  (Note: Users Inbox was not affected, just the archive)


Solution 1
Unfortunately to an extent there is very little we could do to “fix up” the issue and to a degree to coin a common phrase “it is what it is” !!. however we did find a way to alleviate / negate as much as possible the issue. The way we did this was to Restore 6 months of archive back into the users inbox, This re-attached the stubs correctly in its current hierarchy and then just let Exchange archive it naturally to the users new archive, thus retaining the folder structure as much as possible, well at least 6 months’ worth. !! We then pumped the remaining archive straight into exchange, thus having some legacy folder structures but nowhere near as obvious to most users.


2nd Challenge
Of course now we have all of the EV Archive in our “On-Line Archive” but we still have 50,000 stubs in users inbox pointing to the old archive. I am told in later versions of EV  (We had 6.0 SP3) that shortcuts can be removed using EV Policy’s and targeted to Specific users / OU`s., Unfortunately this was not possible in the version we had and the only way to remove the stubs using EV was in “mass”. Which was of no use as the transition will be on-going for a period of time.


Solution 2
A good thing that EV does is that it clearly differentiates its shortcuts from a “standard” e-mail in the way of having its own message class (IPM.Note.EnterpriseVault.Shortcut). So with this in mind I managed to find a use for the good old managed folder/content policy that MS tried to take away from 2010, ( only thing now that in 2010 SP1 it is all in PowerShell.) I did look at seeing if we could use retention policy’s but these cannot be based on messageclass.
so we were able to make a content policy which we could temporally assign to a specific mailbox(S) and remove all stubs.

Other side notes that cropped up, is that the some clients like to keep all archive for users, even if they deleted the stub. So a valid question was asked “can the archive be made read only ?”  Unfortunately this is not possible as yet, but 1 or 2 are asking for it so watch out SP3 ? SP4 !! ?. 

Command Highlights
Here are some of the “best of” bits I have highlighted for you.


Exclude Archive Databases from provisioning when moving /creating live MB`s
Get-MailboxDatabase serverex1-dag01-arc* | Set-MailboxDatabase -IsExcludedFromProvisioning $true
Import Single PST to Mailbox
New-MailboxImportRequest -Mailbox student1 –IsArchive -FilePath file://fileshare01/Vault%20Migrations/Student1_Export_0001.pst –BadItemLimit 10
Import Multiple PST`s to Single mailbox
Dir file://filshare01vaultmigrations/rileys/*.pst | %{ New-MailboxImportRequest -Mailbox rileys –IsArchive –BadItemLimit 10 -FilePath $_.FullName }
Import Multiple PST to Matching Mailbox  (Based on PST Name been the Alias)
Dir file://fileshare01/VaultMigrations | %{ New-MailboxImportRequest -Name PSTImport -BatchName–BadItemLimit 10 Imports -Mailbox $_.BaseName -FilePath $_.FullName –IsArchive }

Remove Stubs
1. Create PolicyNew-ManagedFolder -Name 'Remove EV Stubs' -DefaultFolderType All -Comment 'Removes all EV Shortcuts from Mailbox' -MustDisplayComment $true
               
New-ManagedContentSettings -FolderName "Entire Mailbox" -MessageClass IPM.Note.EnterpriseVault.Shortcut -Name RemoveEVStubs -RetentionEnabled $true -RetentionAction Permanentlydelete  -AgeLimitForRetention "1"

New-ManagedFolderMailboxPolicy -Name "RemoveEVShortcuts" -ManagedFolderLinks "Entire Mailbox"

2. Assign Set-Mailbox -Identity student1 -ManagedFolderMailboxPolicy "RemoveEVShortcuts"

3.  RunStart-ManagedFolderAssistant -identity student1
4. Remove Set-Mailbox -Identity student1 -ManagedFolderMailboxPolicy $null

Checking the Import Progress
Get-MailboxImportRequest | Get-MailboxImportRequestStatistics | ft name,status,TargetAlias,PercentComplete,EstimatedTransferSize,BytesTransferred  -auto

Wednesday, 8 December 2010

Co-Existence of Exchange 2010 with Exchange 2007. EMC Error "IIS directory entry couldn't be created. The error message is Access is denied"

Problem
======
After Adding your Exchange 2010 Servers into an Organisation which has any Exchange 2007 servers present. When you try and Manage the CAS Servers through the Exchange 2010 EMC you will recieve the below error

" IIS directory entry couldn't be created. The error message is Access is denied"

Solution
======
Add “Exchange Trusted Subsystem" group  a member of local admin group of ALL Exchange 2007 servers in the entire organisation.

Migrate / Export Windows 2003 IAS Radius Config to Windows 2008 R2 NPS

Iasmigreader.exe (Bulit into Windows 2008 R2 and Later) a command-line tool that exports the configuration settings of IAS on a computer running Windows Server 2003 to an Ias.txt file. Ias.txt is in a format that can be imported on an NPS server running Windows Server 2008 with the netsh nps import path\ias.txt command.


  1. Copy the iasmigreader.exe file from the following folder:
    • 32-bit version of Windows Server 2008 R2
      C:\Windows\winsxs\x86_microsoft-windows-n..n_service_migreader_31bf3856ad364e35_6.1.7600.16385_none_64707cf9c089e26b
    • 64-bit version of Windows Server 2008 R2
      %windir%\syswow64\
  2. Paste the file in a computer that is running Windows Server 2003 together with IAS (the IAS server).
  3. On the IAS server, no sooner than one minute after you change the IAS server configuration, run the iasmigreader.exe file. This creates an Ias.txt file in the %windir%\system32\ias folder. If you are running a 64-bit version of Windows Server 2003, the Ias.txt file is created in the %windir%\syswow64\ias folder.

    Note The exported Ias.txt file contains all shared secret information from the configuration. Therefore, make sure that the file is stored in a secure location.
  4. Copy the Ias.txt file to the NPS server.
  5. At the netsh prompt on the NPS server, run the netsh nps import command, and specify the ias.txt file as the parameter. For example, at a command prompt, type the following command:
    netsh nps import <path>\ias.txt

Wednesday, 17 November 2010

Exchange 2010 Outlook Wep App (OWA) Changing the Default Spelling Dictionary

It Seems that in Exchange 2010 RTM & SP1 Outlook Web App (OWA). That the default Dictionary Reverts to English United States, Regardless of the CAS Server Language, Client Browser Language etc.

So, How do we change this for multiple or all users users ?
Answer
======
Using Powershell and MailboxSpellingConfiguration Applet command:

1. First lets check the current Dictionary setting for a Particular user,
    we will use:
 Get-MailboxSpellingConfiguration -identity usernamehere

This will present the following output. as can be seen, We have the wrong Dictionary..!

RunspaceId         : 9e7c7fdb-137d-45ac-b04b-71f74eb2e643
CheckBeforeSend    : False
DictionaryLanguage : EnglishUnitedSates

IgnoreUppercase    : False
IgnoreMixedDigits  : False
Identity           :
IsValid            : True


2. Now lets go about setting the Dictionary to our preferred Dictionary.
   So for ALL users the following command will be sufficient.

Get-Mailbox | set-MailboxSpellingConfiguration -DictionaryLanguage EnglishUnitedKingdom



 for a single user we would simply run:
set-MailboxSpellingConfiguration -identity username -DictionaryLanguage EnglishUnitedKingdom


 Running the Above PS Command will confirm the change on a user
Get-MailboxSpellingConfiguration -identity usernamehere
RunspaceId         : 9e7c7fdb-137d-45ac-b04b-71f74eb2e643
CheckBeforeSend    : False
DictionaryLanguage : EnglishUnitedKingdom

IgnoreUppercase    : False
IgnoreMixedDigits  : False
Identity           :
IsValid            : True

Thursday, 11 November 2010

Want an Exchange 2007 OAB Generation Server, that only hosts Public Folder Database? Well you can't & will get errors, 8197, 9386 & 9399 thrown at you...

Scenario:

Brand new Exchange 2007 SP3 UR1 deployment in single windows 2003 Forest / Domain, single AD site spanning well-connected WAN.  Exchange is deployed on Windows Server 2003 x64.  4 x CAS / HT Servers, 2 x Public Folder Mailbox Servers (No Mailbox Stores Present), 2 x Mailbox Server roles (No Public Folder Stores Present, will act as Staging Servers for Quest EMW) and two x CCR clusters (one node in each site, but these aren't relevant yet for this issue).

Added replicas of system Public Folders from PF server 1 to PF Server 2.
Added single Mailbox database to Mailbox-Only Staging server 1, and set Default Public Folder store to point to Public Folder Server 1.

Problem being experienced:

This issue came to light, when we hooked up an Outlook 2003 client to a test mailbox located on the Staging server, and got an 'Error Downloading Address Book' error from Outlook…  'Contact your Administrator'.

Issues observed in Server Event Logs:

The error being logged every 25 minutes on the mailbox-only Staging server, where the test mailbox resided, was:



So, first thing was to try forcing an 'Update Now' on the OAB Generation Server (Public Folder Mailbox Server in this scenario), and then check 'Application' event log.  The command completes without reported error, but when checking the event log, the following are logged:
 



  
Now, the 'Web-Based' distribution part of this appears to be working just fine after forcing the OAB Generation Process for the first time.  Looking on the CAS Server, we can see that after an initial Warning that there are no files to collect, following the forced update, we now get this:


  
So, for E2K7 and above Outlook clients, this shouldn't be an issue.  But when we have the following boxes checked:



then we get the 9386 and 9399 errors being logged on the OAB Generation Server.

Testing things out, general Public Folder creation and replication between nodes is working just fine.  So clearly, the public folder stores are alive and present, contrary to the 9386 and 9399 events, happily accessible by Outlook 2003.  So why are the warnings stating that the PF database is not present?  My suspicion was perhaps you might need a System Attendant Mailbox present to perform certain System Attendant functions such as this, but I could not find anything concrete to support this theory initially, so tried various things to no avail in the first instance.


right at the bottom of the thread, was something pointing towards what I had suspected earlier.

Situation 4, of the following MS article also points towards this:  http://technet.microsoft.com/en-us/library/bb331959(EXCHG.80).aspx

So, checking ADSIEDIT for the System Attendant HOMEMDB value on the Public Folder server showed that there was indeed no value specified, as expected.

To support this theory further, the following can be referenced:


So, I created a new SG and Mailbox DB on the Public Folder server.  Initially, you may not be able to mount the new DB after creating it, down to good old replication latency as usual.  Wait a minute or so, and as always with Exchange, the manual mount works just fine after that.

Here is the resultant event log sequence:


  
So, the first sets of red are moaning about not being able to locate the SA mailbox.
This goes away after a minute, as indicated in one of the warning events.  So we should now have an SA Mailbox:




And we do, with 402 items in it as per any other mailbox server doing very little.

Now, checking back in ADSIEDIT for the HOMEMDB attribute on the System Attendant for the PF server in question shows that we now have an attribute present.  All good!

OK, so try forcing OAB Generation again now, and check the event log out:




and there are now no 9386 or 9399 events reported, whereas before, this would be flagged pretty much instantly when the process failed.
So, things are hopefully happy now.

Checking back in the Public Folder Management Console, we will hopefully see some sub-folders of OAB being created, however you do get some latency experienced here, taking a few minutes for this to show up after the forced generation.  Closing and re-opening the PF Management Console reveals that these have now been created as desired, and we now have the OAB Version 2, 3a and 4 folders.



In addition, this has also solved the MSExchangeBPublish errors that were occurring on the Staging Mailbox Servers, that didn't have public folder stores, but that were pointing to the PF server above.  Note that these stop re-occurring at around 5pm, after reoccurring every 25 minutes before:


Conclusion:

So, if your aim is to have Mailbox role servers dedicated to hosting Public Folder databases and you also wish to make one of these an OAB generation server for legacy Outlook clients, then you MUST retain a local mailbox database also in order for the System Attendant Mailbox to do its job.  If you don’t, the only thing you get told about is that you don't have a Public Folder store alive or mounted and you could well spend a while trying to work out why.

Happy Generating!!

Monday, 8 November 2010

Manage domain member Hyper-V servers from a workgroup PC

A scenario that often arises when installing Hyper-V hosts (running Hyper-V server or server core) for a customer without any existing server 2008/R2 servers in their environment is the need to run the Hyper-V management console from somewhere (anywhere really) while you set the servers up...

There are some fairly extensive blog articles about this, but I have boiled the essentials down to a single, pithy screenshot as usual, also worth noting that this process assumes that you have enabled the remote management options (1, 2 and 3) using sconfig previously, and accepted the kind offer of a reboot afterwards:






Start your dcomcnfg console, browse to ‘My Computer’, click ‘Edit Limits’, and finally permit remote access for anonymous users.  To finish off you need half-an-hour at gas mark four, and some domain credentials added to your machine store for accessing the servers, (this can be done either using the cmdkey utility as shown here, or ‘Credential Manager’ in control panel if you must use a GUI, the account added must have local admin rights on the Hyper-V host) and you are good to go.  It might be worth noting here that there is an (unsupported but otherwise perfectly formed) utility called HVremote which has been released which can do all this for you, it’s just that personally I like to roll my own for stuff like this.  Also worth adding as a ‘Disclaimer’: anonymous remote access to your COM objects is a ‘Very Bad Thing’TM and this should only be used as a temporary stopgap, un-set this when you are done.  Stay safe everyone.