If you already installed the SharePoint 2010 management pack for Operations Manager 2007, you know that this management pack requires the some extra configuration with a file named SharePointMP.Config
First, I invite you to take a look to the following post to help you to understand how the SharePoint 2010 management pack works :
Unfortunately, these both actions have to be done manually and each time that a SharePoint server is added to a SharePoint farm…. not really nice…. So let’s try to automate that with PowerShell
The following script has some requirements about the service account that it will use to run :
- local admin on all SP2010 Front End and Application servers
- local admin on all SQL boxes that host SharePoint 2010 Databases
- local admin on Operations Manager Root Management server
- Operations Manager Administrator
- dbo for the actual SharePoint databases
- full farm admin rights within SharePoint 2010
Normally, most of this requirements are already meet with the installation of the SharePoint management pack itself.
The script is limited to the use of the default “SharePoint Discovery/Monitoring Account” Operations Manager Run As Account.
To summary, you have to run this script, on the RMS, every time that you added a server into a SharePoint Farm. Tips : Create a schedule task and run it once per day…. no more manual action to do.
The SharePoint 2010 management pack configuration is now completed and fully automated.
The complete script is available here : DOWNLOAD
Use it at your own risk, feel free to modify it and distribute it.