Fresh Content on SharePointJoel.com SharePoint Ads
Subscribe in a reader
Between Shane's prescan post (view comments for more details), Bill's prescan wisdom and a few of my own, there are a few good posts on prescan.exe. I tried to do some digging today to address a question on got on my recent prescan post (part1) about what prescan actually DOES. Here's some info I gathered from Bill Baer, Ziyi (dev), and Liping (test).
First off, how do you get prescan? You may see posts where you have to install WSS or MOSS on a server to get the binary and/or XML. Here's a simple workaround. Thanks to the Burl and Samantha based on a thought in alpensh's post.
1. Download Prescan.exe by downloading the 32bit product you plan to upgrade to WSS 3.0/MOSS self extracting executable and run the following command (filename):
SharePoint.exe /extract: <path to file>
> sharepoint.exe /extract:c:\WSS3\
OfficeServer.exe /extract: <path to file>
> OfficeServer.exe /extract:c:\MOSS\
2. After you extract the files, navigate to <path>/Global/WSS/sts.cab, and find the prescan.exe file (and don't forget preupgradescanconfig.xml for SPS to MOSS).
3. Copy the prescan.exe file (and preupgradescanconfig.xml for SPS to MOSS) to a more convenient location on the SPS 2003/WSS 2.0 server with content to be upgraded and run it using the appropriate parameters (/all, /v <URL>).
Examples:
SPS 2003: prescan.exe /c preupgradescanconfig.xml /all
WSS 2.0: prescan.exe /all
/all for all sites or /v http://yourwebapp if you have custom site definitions, and well as you can point to your own /c upgrade schema .xml file.
If it goes well. You'll see "scan finished without failure" in the output. For more details see Part 1 for what success looks like and refer to Bill's blog for prescan errors and what to do with them.
TechNet has more on the usage and syntax of prescan for upgrade.
Run the pre-upgrade scan tool (Office SharePoint Server) (SPS to MOSS)
Run the pre-upgrade scan tool (Windows SharePoint Services) (WSS 2.0 to WSS 3.0)
Next, what prescan is looking for...
First let me admit the list above is a pretty good list, but unfortunately it's not comprehensive, this is another reason why I don't recommend in place upgrades. You may think you know what's been done to your environment, but I say... don't do it... Don't assume you know what exactly been done to your environment, and even prescan only knows what it thinks may cause upgrade to fail. I wish I had a list of what prescan doesn't know what to look for... That's the killer list. As I come across these issues I'll share.
I know you've been warned before about touching the database. Here's a "read" SQL command to view what sites haven't been scanned...
“SELECT Sites.Id, Webs.FullUrl FROM Webs Join Sites ON Webs.SiteId = Sites.Id WHERE Webs.ParentWebId IS NULL AND Sites.Bitflags & 262144 <> 262144”
So what does Prescan Touch in the database?
1. Tp_fields column in the lists table to persist the list schema. This is to facilitate v2->v3 list upgrade
2. Bitflags column in the sites table to indicate a site collection has been scanned.
Flips the bitflags field in the sites table in the content database to 262144 if it is ready to be upgraded.
Snippet from Bill's blog:
So, how can you use this information? If you are doing a gradual upgrade you can focus on those with the flipped bit. If you are doing a database migration/db attach, you can move all those without flipped bits to a common database, and database attach those with the correct bits flipped.
I wanted to point you to some recent content on upgrade and introduce you to some partners that otherwise
I was catching up on my blog reading today and saw Joel's great article on Your Friend Prescan.exe
I cant find the preupgradescanconfig.xml, where is it?
preupgradescanconfig.xml is in the MOSS bits in the /bin directory
Shane Young attached them in his most recent prescan blog post.
L'un sans l'autre, ce serait comme Minus sans Cortex (pour les plus jeunes) ou Laurel sans Hardi. Plus
I have to thank Sean Livingston and Ambrose Treacy for following through. Prior to launch I pushed really
There are pockets of information avaiable on migration strategies, but it's difficult to find concise
I have gotten the same email from several people and the fix has been the same just about every time
A common failure when running the prescan.exe is the 'Exception while looping through virtual servers
Body: You can download PreScan.exe here http://www.microsoft.com/downloads/details.aspx?FamilyID=e8a00b1f
Upgrading Team Foundation Server 2005 to 2008 SP1
You see, this is a perfect example of how fricked up SharePoint...and Microsoft...are. Why the ever-loving name of god above should we have to jump through such hoops in order to get access to a utility which is essential in upgrading to WSS 3.0???
I can't seems to run prescan tool on front-end server, what else can I do to make this working?