SharePoint Patterns & Practices

This guidance helps architects and developers design, build, test, deploy and upgrade SharePoint intranet applications. A reference implementation that is named the Contoso Training Management application demonstrates solutions to common architectural, development, and application lifecycle management challenges.

This guidance discusses the following:

  • Architectural decisions about patterns, feature factoring, and packaging.
  • Design tradeoffs for common decisions many developers encounter, such as when to use SharePoint lists or a database to store information.
  • Implementation examples that are demonstrated in the Training Management application and in the QuickStarts.
  • How to design for testability, create unit tests, and run continuous integration.
  • How to set up different environments including the development, build, test, staging, and production environments.
  • How to manage the application life cycle through development, test, deployment, and upgrading.
  • Team-based intranet application development.

Backup Windows Server 2008 System State using DPM2007

In order for DPM2007 to backup the system state of a Windows Server 2008 machine you have got to install Windows Backup and all of it’s subfeatures. This can easily be done using the following command:

servermanagercmd -install backup -allsubfeatures

If you don’t do this you will get an error message similar to this one:

(ID 30214 Details: Internal error code: 0x809909FB)

Windows Vista Performance and Tuning

Microsoft has released a guide on how to tweak Vista for more performance.

Windows Vista and SP1 focus on delivering greater performance and
overall system responsiveness. By striking a balance between speed and
responsiveness, Windows Vista and SP1 deliver a level of performance
that has the greatest positive impact on the system’s usability.This
guide looks at the following areas of performance improvement:

• Making configuration changes that help a computer feel more responsive when you use it.
• Using hardware to boost the actual physical speed of a computer.
• Making configuration changes that help a computer to start faster.
• Making the computer more reliable may help increase performance.
• Monitoring performance occasionally so that you can stop problems before they get too big.

You can download it here.

Windows Home Server Power Pack 1

Windows Home Server Power Pack 1 is finally RTM:ed. You can download it here.

This brings a range of improvements including:

  • Support for home computers that are running Windows Vista x64 editions
  • Backup of Home Server shared folders
  • Improvements to remote access
  • More efficient power consumption
  • Improved performance

You can find the complete KB article here.

Install Virtual PC Additions on Windows Server 2008 Core

If you have problems installing Virtual PC Additions on a Windows Server 2008 Core, ensure that you don’t have the sound card enabled.



Otherwise the installation will fail and start a rollback. If you look in the msiexec logfile you will find a 1603 error message.

Once the sound card is deactivated the installation works as it should.

List uninstall strings using powershell

If you find yourself in the need of the uninstall string of an application and you have powershell installed on the machine, you could easily get a complete list of all installed applications and their uninstall string using the following command:

dir HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall | foreach-object {get-itemproperty $_.PSPath} | select-object DisplayName,uninstallstring

The Microsoft CRM command bar could not be loaded

Just installed the online version of Microsoft Dynamics CRM 4.0 for Outlook and every time I started Outlook it greeted me with an error message. In the event viewer two red alerts indicated that

“The Microsoft CRM command bar could not be loaded into Microsoft Outlook”

After surfing around for a while I found the following solution by Mr Nick Doelman.

  • Open %APPDATA%\Microsoft\Outlook
  • Rename the Outcmd.dat file to Outcmd.dat.old
  • Reinstall or even just re-config

Don’t know if it will work for you all, but it worked for me 😉

ADAM and Windows Server 2003 SP2

Just came across a situation where a server had been updated to Windows Server 2003 SP2 and suddenly their ADAM instance would not start anymore. After looking at it for a while I resorted to actually read the release notes for SP2, and there was the answer:

ADAM SP1 must be applied before updating a Windows Server 2003 box with SP2.

The solutions was described as:

  1. Uninstall SP2
  2. Install ADAM SP1
  3. Reinstall SP2

Create a bootable USB drive for Vista or Windows Server 2008

It is possible to install Windows Vista or Windows Server 2008 from a bootable USB drive.

To create a bootable usb drive to the following:

Start a command line utility called diskpart. This can be done directly from start/run or from a command prompt. Comments are between {}.

diskpart {This will start diskpart from a command prompt}
list disk {This will list all available disks in the system}
select disk 1 {This will select your usb disk, if it is called 1 in your system}
clean {This will erase ALL information on the currently selected disk}
create partition primary
select partition 1
format fs=fat32

When you are finished with diskpart, all you need to do is copy all files from your Windows Vista / Windows Server 2008 installation media to the usb disk.

xcopy d:\*.* /s/e/f e:\

And you are done!