Last Friday, I presented in the Melbourne MVP Community Camp day, on the topic of “Automating SCOM Tasks Using SMA”.
I have uploaded the session recording to YouTube. You can either watch it here:
Or on YouTube: https://www.youtube.com/watch?v=QW99bVFKg80
You can also download the presentation deck from HERE.
And Here’s the sample script I used in my presentation when I explained how to connect to SCOM management group via SDK:
#Script Name: Sample-ConnectMG.ps1 #Load SCOM SDK DLLs from GAC [System.Reflection.Assembly]::Load("Microsoft.EnterpriseManagement.Core, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") [System.Reflection.Assembly]::Load("Microsoft.EnterpriseManagement.OperationsManager, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") [System.Reflection.Assembly]::Load("Microsoft.EnterpriseManagement.Runtime, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") #Load SCOM SDK DLLs from a folder [System.Reflection.Assembly]::LoadFrom("C:\Temp\Microsoft.EnterpriseManagement.Core.dll") [System.Reflection.Assembly]::LoadFrom("C:\Temp\Microsoft.EnterpriseManagement.OperationsManager.dll") [System.Reflection.Assembly]::LoadFrom("C:\Temp\Microsoft.EnterpriseManagement.Runtime.dll") #Connect to SCOM Management Group $ConnectionSetting = New-Object Microsoft.EnterpriseManagement.ManagementGroupConnectionSettings("OpsMgrMS01") #Optionally, specify username and password $UserName = "Domain\SCOMAdmin" $Password = ConvertTo-SecureString -AsPlainText "password1234" -force $ConnectionSetting.UserName = $Username $ConnectionSetting.Password = $Password #Connect to SCOM Management Group $MG = New-Object Microsoft.EnterpriseManagement.ManagementGroup($ConnectionSetting) #Get Management Group Administration $Admin = $MG.Administration
Overall, I think I could have done better – as I wasn’t in the best shape that day. I have been sick for the last 3 weeks (dry cough passed on to me from my daughter). The night before the presentation, I was coughing none-stop and couldn’t go to sleep. I then got up, looked up the Internet and someone suggested that sleeping upright might help. I then ended up slept on the couch for 2.5 hours before got up and drove to Microsoft’s office. So I was really exhausted even before I got on stage. Secondly, the USB external Microphone didn’t work on my Surface, so the sound was recorded from the internal mic – not the best quality for sure.
Anyways, for those who’s watching the recording online, I’m really interested in hearing back from you if you have any suggestions or feedbacks in regards to the session itself, or the OpsMgrExtended module that I’m about to release. So, please feel free to drop me an email if you like .