Tuesday, October 14, 2008

SharePoint ServerTemplate values

Thanks to Evan Grimmett for this list:

  • 100 Generic list
  • 101 Document library
  • 102 Survey
  • 103 Links list
  • 104 Announcements list
  • 105 Contacts list
  • 106 Events list
  • 107 Tasks list
  • 108 Discussion board
  • 109 Picture library
  • 110 Data sources
  • 111 Site template gallery
  • 112 User Information list
  • 113 Web Part gallery
  • 114 List template gallery
  • 115 XML Form library
  • 116 Master pages gallery
  • 117 No-Code Workflows
  • 118 Custom Workflow Process
  • 119 Wiki Page library
  • 120 Custom grid for a list
  • 130 Data Connection library
  • 140 Workflow History
  • 150 Gantt Tasks list
  • 200 Meeting Series list
  • 201 Meeting Agenda list
  • 202 Meeting Attendees list
  • 204 Meeting Decisions list
  • 207 Meeting Objectives list
  • 210 Meeting text box
  • 211 Meeting Things To Bring list
  • 212 Meeting Workspace Pages list
  • 300 Portal Sites list
  • 301 Blog Posts list
  • 302 Blog Comments list
  • 303 Blog Categories list
  • 850 Page Library
  • 1100 Issue tracking
  • 1200 Administrator tasks list
  • 2002 Personal document library
  • 2003 Private document library

Sysprepping your Virtual Machine for other developers

Creating a SharePoint Development Environment is a painfull task that usual takes at least a day / day and a half to get right. Once you have installed the OS, Applications, Service Packs, Updates, downloaded and installed your favourite tools, etc the time just goes.

The great thing is that with a Virtual Machine you can just take a copy of that machine and give it to someone else. Great. Although this doesn't really work. If you take a copy of a virtual machine and give it to someone else, they have the same SID, GUIDs and MAC addresses and as soon as you connect them both to the network, Windows has a cow and you are constantly bombarded with notices about another machine on the network with the same name, etc.
There is a great tool out there called Sysprep that allows you to remove these values from the machine and when you give a copy of your .vhd to someone else, the first time they load it up, they are assigned new values and hence, have a unique VM on the network. Brilliant.

This step by step guide was initially found on here by Megan Davies on her Technet Blog

Important Notes:
Do not perform this procedure on the host computer!! Perform it only within the guest operating system of the virtual machine you want to clone.
Microsoft does not support using a tool other than Sysprep for cloning virtual machines. For more information, see this Knowledge Base article:
http://support.microsoft.com/Default.aspx?id=162001.

Step 1: Install the Setup Manager files in your guest operating system
Set up a base virtual machine by installing the operating system, service pack, patches, applications, and so forth that you want to clone.


Start the guest operating system and log on as a local administrator.
From the guest operating system, go to the Microsoft Web site and download the appropriate Sysprep version. Extract the files to a folder such as C:\Tools on the guest hard disk. You can obtain the SysPrep files from the following locations:
Windows 2000:
http://www.microsoft.com/windows2000/downloads/tools/sysprep/default.asp
Windows XP: http://www.microsoft.com/downloads/details.aspx?FamilyID=7a83123d-507b-4095-9d9d-0a195f7b5f69&DisplayLang=en
Windows XP SP2 and Windows Server 2003: http://www.microsoft.com/downloads/details.aspx?FamilyID=3e90dc91-ac56-4665-949b-beda3080e0f6&displaylang=en&Hash=RWRPDM9

Step 2: Create an answer file
Note: This procedure applies to the Sysprep version for Windows Server 2003. You’ll need to modify the steps for other versions of Sysprep. The files that you extracted from the Microsoft Web site include a help file named Deploy.chm that has specific information for your version. It's a good idea to read the help file and become familiar with this tool and figure out how to customize the following steps for your own environment and purposes.


In the Tools folder on the local disk of the guest operating system, double click Setupmgr.exe to start the Setup Manager wizard.
Click "Next."
Select "Create New" and click "Next."
Select "Sysprep Setup" and click "Next."
Select the type of guest operating system and click "Next."
Select "Yes – Fully automate the installation" and click "Next."
Type a name and organization, click "Next."
Accept the default display settings by clicking "Next."
Select your home time zone and click "Next."
In Product Key type the product key and click "Next."
In licensing, select the type of license for the guest operating system, and click "Next."
Type a computer name for the guest operating system and click "Next."
Set the administrator password and click "Next."
To ensure that the password will be set, the machine’s password must be blank. Press Right-ALT + DEL and click "Change Password." Type the old password and leave the new password blank. Click "OK."
Select "Typical Settings" and click "Next."
Leave the machine in a workgroup and click "Next."
Customize the next few screens of additional settings as necessary. If you don't know what they're for, accept the defaults.
In "Identification String" type the computer name and click "Finish."
Specify C:\Tools\Sysprep\sysprep.inf for the location for the .inf file.
Click "Cancel" to close the Setup Manager wizard.
You now have a C:\sysprep folder with your sysprep file and copy stored at C:\tools\sysprep\sysprep.inf.
Copy Sysprep.exe and Setupcl.exe from C:\Tools\Sysprep to C:\Sysprep.
Step 3 – Sysprep the guest operating system
Close all windows in the guest operating system.
Click "Start" and then "Run."
Type C:\sysprep\sysprep.exe and press Enter.
This starts the Sysprep process. Click "OK" to clear the warning dialog.
Select "Do not reset grace period for activation."
Make sure that the shutdown mode is "Shutdown."
Click "Reseal."


When prompted about regenerating SIDS, click "OK." The guest operating system will be Sysprepd and will automatically shut down.

Remove the base .vhd file from the virtual machine, and in the file system, make the base.vhd file read-only. You need to do this because you do not want to start a virtual machine by using this base .vhd file. If you do, it will undo the whole process that you just went through.

You can now make copies of this .vhd file and attach them to different virtual machines. After you copy the .vhd file, you need to remove the copy’s read-only attribute. When you start a virtual machine with a copied .vhd file, it will receive a unique SID and other identifiers. You can also use the base .vhd file as the parent drive image for several differencing drives. The unique identifiers for each guest operating system built in this way will thus be written into the differencing drives, and not the parent.

Note: The fourth time you run Sysprep on the same media, you receive the message, "Your grace period limit has been reached and will not be reset." For more information, see http://support.microsoft.com/default.aspx?scid=299840.