In this article I want to share how to use PowerShell to attach event receiver to a list, provide configuration values from an xml. And also, how to use PowerShell to view a list of existing event receivers.
The Microsoft technet article Automated Farm level Solution Deployment and Retraction, gives a very good example of deploying SharePoint wsp solutions using PowerShell. However, I felt that it would be better to wait for the timer job to complete instead of using sleep command as mentioned in SharePoint 2010: PowerShell to Wait for WSP Solution Deployment Timer Job to Complete
Also, I thought it would be better if we added a configuration xml instead of providing input parameters.
Continue reading “Deploy solution wsp to SharePoint”