But how to go about it? It’s fairly simple. Run these three commands in the Operations Manager shell and you can run all your old (but still effective) SCOM 2007 PS scripts :
- add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client"
- new-managementGroupConnection –ConnectionString:<NAME OF YOUR SCOM 2012 MS SERVER>
- set-location "OperationsManagerMonitoring::"
After these commands the SCOM 2007 PS R2 Provider is loaded and active. Now you can run your old SCOM 2007 R2 PS scripts.
Even though this trick works perfectly, you should only run these SCOM 2007 R2 based PS scripts when you’re ABSOLUTELY sure they don’t harm your SCOM 2012x environment!!!