How to find out what process is running SharePoint 2010 so you can connect to debug

create a batch file called spr.bat and put following in it @echo off PATH=%PATH%;c:\windows\system32\inetsrv appcmd list wp open cmd window where spr.bat file is and run it Output: WP "9892" (applicationPool:SharePoint – 80) WP "1784" (applicationPool:SecurityTokenServiceApplicationPool) WP "8528" (applicationPool:9ce61ca73f1b467e9220944802480282) WP "9768" (applicationPool:SharePoint Central Administration v4) So I would connect to …

Programmatically change theme of newly created site

Add Event Reciever for WebProvisioned: Right Click on Project->Add-.New Item…->Event Reciever and lets call it WebProvisionedEvent Now select “A site was provisioned” Change WebProvisioned method to this public override void WebProvisioned(SPWebEventProperties properties) { //newly created site SPWeb childSite = properties.Web; //Get Parent SPWeb topSite = childSite.ParentWeb; //Set themes to same …