At my work we work with a pre-setup development environment, which always includes SharePoint Enterprise edition. But if you have a customer working with the Standard edition, you might be in some trouble during deployment.

To prevent trouble, you can downgrade your Enterprise installation by de-activating and de-installing some features. Below follows a small script to remove the Enterprise features from your environment. Replace the http://url with the correct url.

stsadm -o deactivatefeature -force -url http://url -name PremiumSite
stsadm -o deactivatefeature -force -url http://url -name BizAppsSiteTemplates
stsadm -o deactivatefeature -force -url http://url -name BizAppsCTypes
stsadm -o deactivatefeature -force -url http://url -name IPFSSiteFeatures
stsadm -o deactivatefeature -force -url http://url -name BizAppsFields
stsadm -o deactivatefeature -force -url http://url -name ExcelServerSite
stsadm -o deactivatefeature -force -url http://url -name BizAppsListTemplates
stsadm -o deactivatefeature -force -url http://url -name PremiumWeb
stsadm -o deactivatefeature -force -url http://url -name ReportListTemplate
stsadm -o deactivatefeature -force -url http://url -name DataConnectionLibrary
stsadm -o deactivatefeature -force -url http://url -name IPFSWebFeatures
stsadm -o uninstallfeature -force -name PremiumSite
stsadm -o uninstallfeature -force -name BizAppsSiteTemplates
stsadm -o uninstallfeature -force -name BizAppsCTypes
stsadm -o uninstallfeature -force -name IPFSSiteFeatures
stsadm -o uninstallfeature -force -name BizAppsFields
stsadm -o uninstallfeature -force -name ExcelServerSite
stsadm -o uninstallfeature -force -name BizAppsListTemplates
stsadm -o uninstallfeature -force -name PremiumWeb
stsadm -o uninstallfeature -force -name ReportListTemplate
stsadm -o uninstallfeature -force -name DataConnectionLibrary
stsadm -o uninstallfeature -force -name IPFSWebFeatures

To activate the Enterprise features again, you can use the following script:

stsadm -o installfeature -name PremiumSite
stsadm -o installfeature -name PremiumWeb
stsadm -o installfeature -name BizAppsSiteTemplates
stsadm -o installfeature -name BizAppsCTypes
stsadm -o installfeature -name IPFSSiteFeatures
stsadm -o installfeature -name BizAppsFields
stsadm -o installfeature -name ExcelServerSite
stsadm -o installfeature -name BizAppsListTemplates
stsadm -o installfeature -name ReportListTemplate
stsadm -o installfeature -name DataConnectionLibrary
stsadm -o installfeature -name IPFSWebFeatures
stsadm -o activatefeature -url http://url -name PremiumSite
stsadm -o activatefeature -url http://url -name PremiumWeb