Download: http://www.scomgod.com/wp-content/uploads/2015/01/reset1.txt
VBS Script to get AD Group Members
‘Script begins here
Dim objGroup, objUser, objFSO, objFile, strDomain, strGroup, Domain, Group
‘Change DomainName to the name of the domain the group is in
strDomain = Inputbox (“Enter the Domain name”, “Data needed”, “Default domain name”)
‘Change GroupName to the name of the group whose members you want to export
strGroup = InputBox (“Enter the Group name”, “Data needed”, “Default group name”)
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
‘On the next line change the name and path of the file that export data will be written to.
Set objFile = objFSO.CreateTextFile(“C:\” & strGroup & ” – Members.txt”)
Set objGroup = GetObject(“WinNT://” & strDomain & “/” & strGroup & “,group”)
For Each objUser In objGroup.Members
objFile.WriteLine objUser.Name & ” – ” & objUser.Class
Next
objFile.Close
Set objFile = Nothing
Set objFSO = Nothing
Set objUser = Nothing
Set objGroup = Nothing
Wscript.Echo “Done”
Wscript.Echo “Please check the c: for your output file”
SCOM 2012 Reminder Alerts – PowerShell Script to Update Alert Resolution
I use this to regenerate reminder alerts for certain alerts. This script will trigger for alerts with “Disk” in the name.
$MS = “yourRMS.yourCO.com”
$connect = New-SCOMManagementGroupConnection –ComputerName $MS
Get-SCOMAlert -criteria ‘ResolutionState = “0” AND Severity = “2”‘ |
Where-Object {$_.Name -like “*disk*” -and $_.IsMonitorAlert -eq $true} |
Set-SCOMAlert -ResolutionState 0 |
out-null
SCOM 2012 R2 Test Event MP
MP and scripts to test that SCOM internal monitoring is working.
Zip file contains:
—Management Pack
—VBS Event Script
—Scheduled Task
DOWNLOAD Link: SCOM.Test.MP
SCOM Cluster Failover Events MP
Basic MP to pick up System events when Cluster MP fails.
SCOM 20012 R2:
http://www.scomgod.com/wp-content/uploads/2014/09/FailoverClustering.Error_.Events.zip
SCOM 2007R2:
http://www.scomgod.com/wp-content/uploads/2014/09/FailoverClustering.Event_.Errors_SCOM2007R2.zip
SCOM 2012 R2 Maintenance Mode Powershell Script for Single Server
Import-Module OperationsManager
$Instance = Get-SCOMClassInstance -Name “server.powerfulcorporation.com”
$Time = ((Get-Date).AddMinutes(15))
Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Comment “Applying software update.” -Reason “SecurityIssue”
Valid Reasons
UnplannedOther, PlannedHardwareMaintenance, UnplannedHardwareMaintenance, PlannedHardwareInstallation, UnplannedHardwareInstallation, PlannedOperatingSystemReconfiguration, UnplannedOperatingSystemReconfiguration, PlannedApplicationMaintenance, ApplicationInstallation, ApplicationUnresponsive, ApplicationUnstable, SecurityIssue, LossOfNetworkConnectivity
SCOM Reports Edit Issue QFE_MOMEsc_4724
The file QFE_MOMEsc_4724.zip, will unzip an MSI file.
When you run the MSI this will unpack the private fix to the following path,
\Program Files (x86)\System Center\QFE_MOMEsc_4724\ or \Program Files\System Center\QFE_MOMEsc_4724\
This code change updates the following file, %ProgramFiles%\System Center Operations Manager 2007\Microsoft.MOM.UI.Common.dll, and needs to be placed on any machine where you have the OpsMgr console installed.
In order to verify this update I would like to do the following.
1) Take a copy of the current existing file and place it in a suitable directory.
2) Close down any open console and then replace the existing Microsoft.MOM.UI.Common.dll with the one you have downloaded from the URL above.
3) Please then restart the console and confirm this has corrected the issue in your environment.
Download hotfix: QFE_MOMEsc_4724
Clean Windows 2008R2 Space
DISM.exe /online /Cleanup-Image /spsuperseded
Credit: http://om2012.wordpress.com/2014/03/06/windows-2008r2-running-out-of-disk-space
SCOM Linked Availability Report
Credit: http://blogs.technet.com/b/momteam/archive/2008/06/26/the-power-of-linked-reports.aspx
Download: LinkedReports
Recent Comments