Post Views: 453 This Script will return all the Rules which are Monitoring or collecting any events in SCOM. $Cur = Get-Location Import-Module OperationsManager $Rules = Get-SCOMRule $RuleNames = $Rules.Name foreach ($Rule in $RuleNames) { $RuleName = Get-SCOMRule -Name “$Rule” $Configuration = $RuleName.DataSourceCollection $RuleConfig = $Configuration.Configuration If […]
Post Views: 621 Today I will discuss here how we can connect to SCOM SDK from a remote computer where we don’t need to copy the SDK binaries. I am going to use ScriptBlock to connect the PowerShell of the remote machine. Please find the sample piece of […]
Post Views: 626 This is one of the most demanded features in SCOM. As a SCOM admin, we were eagerly waiting for it and Microsoft had introduced this feature in SCOM 2016 for the first time and is available on the latest version of the SCOM products […]
Post Views: 783 I have made the Orchestrator database maintenance activity automated. You can get the following Script in the below GitHub repository. https://github.com/souravmahato7/Codes/blob/SCORCH/DatabaseMaitenanceScript.PS1 ################################################################## #Author: Sourav Mahato #Created Date:09/25/2019 #Purpose: Script for grooming the data for Orchestrator database # Please save the Script in the […]
Post Views: 307 Please find the Script in the below location: https://github.com/souravmahato7/Codes/blob/Windows/System_Info.PS1 ################################################################## #Author: Sourav Mahato #Created Date:01/05/2015 #Purpose: Script to get the details of the System with a Single PowerShell Script###### ################################################################## $Cur = Get-Location if (Test-path “$cur\SystemInfo.xlsx”) { Remove-Item -Path “$cur\SystemInfo.xlsx” -Force } if […]
Post Views: 296 You can get the Script from the below link. https://github.com/souravmahato7/Codes/blob/SCOM/Get_All_The_ServiceMonitor.PS1 ################################################################## #Author: Sourav Mahato #Created Date:08/26/2019 #Modified Date:12/22/2019 #Purpose: Script for get all the service Monitor in SCOM #How to run: You just need to run it from SCOM Management Server and create Temp […]
Post Views: 277 $Alert = Get-SCOMAlert -Name “Alert Name” $MonitorID = $Alert.MonitoringRuleId $MonitorName = Get-SCOMMonitor -id $MonitorID $managementpack = $MonitorName.GetManagementPack() $managementpackname = $managementpack.DisplayName $managementpackname
Post Views: 511 I have seen many posts in common forum and it seems that many of you are having challenges when it comes to moving the SCOM database to a new SQL database instances. The process is bit complex, so it’s become a bit challenges to […]
Post Views: 307 Solution 1: You can run the PowerShell Script which is located here: https://github.com/souravmahato7/Codes/blob/SCOM/GroupInfo.PS1 ##################################################################<#Purpose: This script will help you to identify in how many groups the server is part of #># You need to copy this GroupInfo.PS1 file to a location on your […]
Post Views: 416 We need to use the following Switch which will recover the management servers. Setup.exe /silent /AcceptEndUserLicenseAgreement /recover /EnableErrorReporting:Never /SendCEIPReports:0 /UseMicrosoftUpdate:0 /InstallPath:”D:\Program Files\System Center 2016\Operations Manager” /DatabaseName:OperationsManager /SqlServerInstance:<server\instance> /DWDatabaseName:OperationsManagerDW /DWSqlServerInstance:<server\instance> /DASAccountUser:<domain\username> /DASAccountPassword:<password> /DatareaderUser:<domain\username> /DatareaderPassword:<password> /DataWriterUser:<domain\username> /DataWriterPassword:<password> /ActionAccountUser:<domain\username> /ActionAccountPassword:<password> /ManagementGroupName:MGName