Friday, January 28, 2011

This years goal, scripting

One of my 2011 IT resolutions is to ween myself off the GUI tools I have come to know and rely on, and to perform as many of those tasks as reasonable with tools like Powershell.

Here are two links to get started:

http://www.techrepublic.com/blog/10things/10-powershell-commands-every-windows-admin-should-know/2052

http://technet.microsoft.com/en-us/library/bb978526.aspx

Monday, January 10, 2011

SBS 2008 SourcePrep tool fails to run

I encountered a strange error trying to run the SBS Source Prep tool for 2003 to 2008 migration.

The application silently fails, with the only hint being the following error in the event log.

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 1/6/2011
Time: 5:29:59 PM
User: N/A
Computer: MMP1
Description:
EventType clr20r3, P1 sourcetoolwizard.exe, P2 6.0.5601.8532, P3 4c03eb7a, P4 mscorlib, P5 2.0.0.0, P6 4333ab80, P7 ee3, P8 0, P9 n3ctrye2kn3c34sgl4zqyrbfte4m13nb, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

So I hit the search engines, and unfortunately found very little. I have included the following as they may or may not help others.



Changing the legacyexceptionhandler in the aspnet.config file as per the MSKB article Repairing .Net 2.0 Uninstalling and reinstalling .Net 2.0 Installing updates and patches for .Net 2.0 Trying the installation with a newly created Domain Admin account

http://support.microsoft.com/kb/911816

http://www.eggheadcafe.com/software/aspnet/32044986/net-runtime-20-error-reporting--event-id5000-application-crash.aspx

http://malcan.com/EN/Lists/Tips%20and%20tricks/DispForm.aspx?ID=18

http://support.microsoft.com/kb/2021568

Given there was a very limited window that the client had given to complete the server upgrade, and that I have the benefit of working for a MS Gold Partner, I raised the issue with Microsoft Support.

The ususal standard 'have you tried' out of the way, we ran the app in debug, and also used process monitor to capture what was going on when the tool was running.

A bit of a 'why didn't I think of that' moment. Anyway, the Process Monitor log showed a write to a file call SourceToolUpdate.log. There was nothing of note contained in this file, but in the same folder was SourceTool.log.

http://msdn.microsoft.com/en-us/library/aa511282.aspx

This did have some errors, specifically: a

01/07/2011 16:24:05 !Error! System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Font 'Segoe UI' does not support style 'Regular'.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(SerializationInfo info, StreamingContext context)
--- End of inner exception stack trace ---

The server appear to have the correct font, so on a whim I grabbed a copy from a 2008 server. Frustratingly, the source tool now runs.

So, if you have issues with the SourceTool, locate the SourceTool.log. It might turn out to be the wrong version of a font.

Saturday, January 8, 2011

What does the Migration Preparation Tool do?

During a recent issue with a SBS 2003 to 2008 migration, I was asked to explain what the Migration Preparation Tool does. Put on the spot, all I could remember as the AD Schema update and ...some other things.

So, here it is, verbatim from the MS Documentation:

The Migration Preparation Tool prepares the Source Server for the migration process by performing the following tasks:

Runs Adprep.exe, which extends the Active Directory Domain Services (AD DS) schema and updates permissions as necessary to prepare a forest and domain for a domain controller that runs Windows SBS 2008. The AD DS schema in Windows SBS 2008 is not the same as the schema for AD DS in Windows SBS 2003 or in Windows Server 2003. To successfully complete the migration process, you must update the AD DS schema on the Source Server if it is running Windows SBS 2003 or Windows Server 2003.

Important
It is recommended that you back up your Source Server before running the Migration Preparation Tool. All changes that the Migration Preparation Tool makes to the schema are irreversible. If you experience issues during migration, the only way to return the Source Server to the state before you ran the Migration Preparation Tool is to restore the system backup.


Installs an update that extends the time limit for finishing the migration process. Only one server running Windows SBS 2008 or Windows SBS 2003 is allowed to be a domain controller on your network. For a migration, you can have both domain controllers on your network for a limited time period. The update extends this time period to 21 days.


Prepares the server to migrate from Exchange Server 2003. For the migration process to be successful, Exchange Server must be in native mode, not in mixed mode. For more information about converting from mixed mode to native mode, see “How to convert from mixed mode to native mode in Exchange” at the Microsoft Web Site (http://go.microsoft.com/fwlink/?LinkId=104943).

Thursday, January 6, 2011

Service and Scheduled Task User Manager

Service and Scheduled Task User Manager

Changes service account passwords - here

Wednesday, January 5, 2011

Trend Micro EHS Server Lists

For some reason, which I haven't bothered to look into yet, some of the Trend EHS servers were on the IP Blocklist of one of our customers.

Unfortunately the consultant we took over from hadn't specifically configured the IP ranges in the IP Allow lists. This meant that some mail was being rejected, after it had been through and scrubbed by the clients own Trend EHS subscription.

The IP ranges to whitelist are here - EHS Outbound Server Lists

As an aside, we setup the Trend MX record additionally to the clients own, then setup the Exchange connectors to only accept mail from the above list of IP's. This permits switching from the Trend Services back and forth from the clients mail server much easier.

SBS 2008 Migration - Export SendAs Permissions from Exchange

One of the tasks that isn't taken care of by the migration process is setting SendAs permissions for mailboxes. This requires going through each account and reviewing the SendAs permissions. That sounded to much like hard work, so I went looking and found the following
post.

This PowerShell script provides a listing of mailboxes and SendAs permissions, and will even permit exporting this to CSV. Brilliant!

SBS 2008 - Don't disable IPv6

I received an interesting email from one of our engineering team today, informing of the problem they had resolved with Exchange 2007 services not starting on SBS 2008.

Apparently, they needed to turn IPv6 back on. Which leads me to the point of this post. Don't turn off IPv6, especially not on SBS 2008. My college was lucky, in that restoring IPv6 brought everything back to life.

SBS 2008 relies on IPv6, especially with Exchange. Some of the symptoms are:

Exchange services failing to start
Very (as in 30+ minutes) long startup or startup hangs.
Network icons show of line
Errors in event logs

Browse through the SBS MVP blogs, they all tell you, don't do it! SBS Diva - Don't Untick the IPv6 Box

Their motivation for disabling was on the surface a valiant one, disable features not needed (nobody uses IPv6 in their networks anyway). Unfortunately, this is the wrong assumption. Many of the 2008 and later features will use IPv6, so whilst you might not have configured it, your network is running IPv6.

If you must disable IPv6, do it properly. Check the Official SBS Blog post here