Ever try to import a web from a MOSS server to a WSS server and get those little errors about “Could not find feature xxxx”. More specifically, the first one you run in to is “Could not find feature OffWFCommon”. Here is a little trick to get rid of those before you migrate.
$siteurl = "http://blah"
$site = new-object Microsoft.SharePoint.SPSite $siteurl
$web = $site.OpenWeb()
stsadm -o deactivatefeature -url $siteurl -name OffWFCommon
stsadm -o deactivatefeature -url $siteurl -name TranslationWorkflow
$site.features|%{$_.Definition}|?{$_.ReceiverAssembly -like "*Office*"}|select DisplayName
$site.features|%{$_.Definition}|?{$_.ReceiverAssembly -like "*Office*"}|%{stsadm -o deactivatefeature -url $site.url -name $_.DisplayName}
stsadm -o deactivatefeature -url $siteurl -name TransMgmtLib
$web.features|%{$_.Definition}|select displayname,status
Advertisement