• SCOM 2012 Documentation
  • Microsoft OpsMgr Team Blog
  • Kevin Holman’s Blog
  • thoughtsonopsmgr
  • SCOM2K7 Blog
  • BICTT Blog
  • Cameron Fuller
  • JC’s SCOM Blog
  • Tao Yang SCOM Blog
SCOM GOD

Category Archives: Scom Tips

SCOM Get Missing Performance Data

February 3, 2016 1:15 am / SCOMGod

https://gallery.technet.microsoft.com/scriptcenter/Get-Missing-SCOM-c08b1f11

Posted in: SCOM Tips

SCOM 2012 Linux Agent gray and critical – Requires uninstall of agent & cert

January 21, 2016 2:18 am / Leave a Comment / SCOMGod

Notes from our Linux admin on what he did when WSManFault is gray + critical in the console from Certificate error. This was the only way we could fix this one quickly.

The cert failed because it was signed by opsmgr01 or opsmgr03 which is not a FQDN. Normally the search line of /etc/resolv.conf should have directed any dns search to the correct server but the file had been overwritten by NetworkManager. You can get around this by putting a search line in /etc/sysconfig/network-scripts/ifcfg-eth0. Here’s the procedure to fix

1. make sure “MS1” and “MS2” are pingable not as FQDNs
2 rpm -e
3. rm -rf /etc/opt/Microsoft/scx/* (necessary to remove cert)
4. reinstall scom through operations manager

If you leave out any of the above steps then it won’t work. If you are doing this in rhel5 you have to add the extra step of making sure the svcscom account has full access to all files in /etc/opt/Microsoft/scx/ssl

Posted in: SCOM Tips

SCOM 2012 Batch File to Clear Health Service Cache

October 10, 2015 5:05 am / Leave a Comment / SCOMGod

net stop HealthService
cd\
cd C:\Program Files\System Center 2012\Operations Manager\Server\Health Service State\Health Service Store
del *.* /F /Q
net start HealthService

Posted in: SCOM Tips

SCOM 2012 Put URL into Maintenance Mode

October 6, 2015 4:40 am / Leave a Comment / SCOMGod

$Time = ((Get-Date).AddMinutes(20))
$Instance = Get-SCOMClassInstance -DisplayName “http://www.google.com”
Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Reason “PlannedApplicationMaintenance” -Comment “Nightly Maintenance”

Posted in: SCOM Tips

MS Operations Management Suite Survival Guide

August 18, 2015 3:28 pm / Leave a Comment / SCOMGod

http://social.technet.microsoft.com/wiki/contents/articles/31909.ms-operations-management-suite-survival-guide.aspx

Posted in: SCOM Tips

Script to Logoff All Disconnected Citrix Sessions

July 23, 2015 8:05 pm / Leave a Comment / SCOMGod

‘ Logoff Disconnected Sessions
‘ If you want to logoff active sessions as well, change the query to include
‘ cActive
On Error Resume Next

Const cActive = 0
Const cDisconnected = 4
Const strComputer = “.”

Set objWMICitrix = GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” & strComputer & “\root\citrix”)
Set colItems = objWMICitrix.ExecQuery (“Select * from Metaframe_Session Where sessionstate = ” & cDisconnected)

For Each objItem in colItems
if (objItem.SessionID > 0) and objItem.SessionID then
objItem.Logoff
end if
Next

Set objWMICitrix = Nothing

Posted in: SCOM Tips

SCOM Health Service Flush Scripts

March 26, 2015 2:46 pm / Leave a Comment / SCOMGod

http://www.scomnifties.com/health-service-healthservice-exe-restart-flush-cache/

Posted in: SCOM Tips

SCOM 2012 PowerShell One Liners

February 25, 2015 2:37 pm / Leave a Comment / SCOMGod

https://om2012.wordpress.com/category/om12-powershell/

Posted in: SCOM Tips

GreenMachine for SCOM 2012

January 28, 2015 5:11 pm / Leave a Comment / SCOMGod

http://blogs.technet.com/b/predrag_oparnica/archive/2013/11/25/opsmgr-powershell-script-to-reset-all-unit-monitors.aspx

Download: http://www.scomgod.com/wp-content/uploads/2015/01/reset1.txt

Posted in: SCOM Tips

VBS Script to get AD Group Members

January 23, 2015 5:59 pm / Leave a Comment / SCOMGod

‘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”

Posted in: SCOM Tips

Post Navigation

← Older Posts
Newer Posts →

Recent Comments

  • admin on SCOM SQL Script to show gray agent data historical reasons
  • admin on SCOM SQL Script to show gray agent data historical reasons
  • Gene on SCOM SQL Script to show gray agent data historical reasons
  • admin on SCCM 2012 SP1 Installation Pre-reqs
  • Ryan on SCCM 2012 SP1 Installation Pre-reqs

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Blogroll

  • Anders Blog
  • Daniele's Blog
  • Great SCOM Report Tutorial
  • Microsoft SCOM Forums
  • Savision Sample Dashboards
  • SCOM Blog
  • SCOM FAQ
  • scom-2012.blogspot.be
  • System Center 2012 Notes From the Field
  • Veam Install PDF

Recent Posts

  • PowerShell Script RDP Sessions List
  • Powershell Search Thru IIS Logs for Text String
  • PowerShell Reboot AD Based Computers
  • PowerShell Dump ACL of a Path Folder
  • SCOM Maintenance Mode Group of Servers
  • WMI Admin Access without Domain Admin Privilege
  • Script to Update User Redirected Folders ACL
  • Windows 2012 R2 Folder Redirection Step by Step
  • SharePoint 2013 Pre-reqs Link
  • Windows 2012 TSAdmin Download
  • Server Reboot Batch File
  • SCOM Get Missing Performance Data
  • SCOM 2012 Linux Agent gray and critical – Requires uninstall of agent & cert
  • SCOM 2012 Batch File to Clear Health Service Cache
  • SCOM 2012 Put URL into Maintenance Mode
  • MS Operations Management Suite Survival Guide
  • Script to Logoff All Disconnected Citrix Sessions
  • SCOM 2012 R2 Close All Alerts Script
  • SCOM Health Service Flush Scripts
  • SCOM 2012 PowerShell One Liners
  • GreenMachine for SCOM 2012
  • VBS Script to get AD Group Members
  • SCOM 2012 Maintenance Mode Notification MP
  • SCOM 2012 Reminder Alerts – PowerShell Script to Update Alert Resolution
  • SCOM 2012 R2 Test Event MP
  • SCOM Cluster Failover Events MP
  • SCOM 2012 R2 Maintenance Mode Powershell Script for Single Server
  • SCOM Reports Edit Issue QFE_MOMEsc_4724
  • Clean Windows 2008R2 Space
  • SCOM Linked Availability Report
  • SCOM Catch All Management Pack
  • PowerShell Script Close All SCOM Alerts 2007R2
  • Windows Update Error 80072EFE in Client Hyper-V Guest
  • SCOM query to get all data about an obejct
  • SCOM 2012 Cluster Disks management pack addendum
  • SCOM Cluster CSV Query
  • SCOM REPORT MODELS
  • SCOM 2012 Bulk URL Editor Manager Download
  • SCOM Catch All Error Events Log Rule
  • SCOM 2012 iSCSI Volume Shadow Copy Rules MP
  • Configuring Hyper-V for multiple subnets with only one NIC (Server 2012 R2 Edition)
  • Windows 2012 USB Boot Disk
  • SCOM Web Console Path Not Showing
  • Windows 2012 R2 BlueScreen Fix
  • AD Password Expiration Report Script
  • SCCM Query: Uptime and Last Reboot Time
  • SCOM 2012 ToolBox Downloads
  • EMC SCOM 2012 Management Pack ESI
  • SCOM ETL Trace Instructions
  • Extended SQL MP
  • SQL Instance List Report for SCOM
  • SCOM SQL Script to show gray agent data historical reasons
  • List of all SCOM Monitors from Various Popular Management Packs
  • How to extend date of SCOM certificate issued by Stand Alone CA
  • How to Run Hyper-V on a Laptop
  • SCOM Alert for Specific Account lockout
  • Microsoft Technet Lab Guides
  • SCOM Gateway Troubleshooting Steps – Jonathan Cowan Credit
  • SCOM 2012 Maintenance Mode Utility
  • How to Reinstall SCOM Reporting
  • SCCM 2012 Client Action Tool!
  • SCOM Report Data Source Fix
  • SCOM 2012 Health Check Script
  • SCOM RunAs Account Fixer PowerShell Script!
  • File Share Check and Email Script
  • SCOM 2012 Exchange 2010 MP Filling Logs with Login Failures
  • SCOM 2012 Report Data Source Option Missing
  • SCOM 2012 File Share Management Pack
  • Dynamic Groups with Expressions in OpsMgr
  • SCOM 2012 Unsealed Management Pack Backup
  • SCOM 2012 Web View Widget
  • Windows 2003 Bits 2.5 Download
  • SCOM 2012 Maintenance Mode
  • SCOM 2012 Utilization Reports Processor Data Missing
  • Windows Server 2012 Keyboard Shortcuts
  • SQL SCOM 2012 Alerts By Email Script
  • Windows 2012 Interface Explanation from Microsoft
  • Microsoft Private Cloud Step By Step
  • Managing SCOM 2012 Alerts: Daily Tasks
  • SCOM 2012 Training Guides and Videos
  • SCCM 2012 SP1 Installation Pre-reqs
  • SCOM SQL Run As Account Guidelines
  • Windows Server 2012 Won’t Activate: DNS Server Not Found
  • Brian Wren’s Sample Network Management Pack for System Center 2012 Operations Manager
  • The Greatest PowerShell Script of All Time for Windows Admins by Sean Duffy
  • SCOM Health Check Excel Template
  • List All AD User Object Attributes
  • Sharepoint 2010 Management Pack for SCOM 2012
  • How to Run a Powershell Script as a rule in SCOM as a Command
  • OpsLogix PING MP for SCOM 2012
  • SQL Server cannot authenticate using Kerberos because the Service Principal Name (SPN) is missing, misplaced, or duplicated.
  • SCOM Maintenance Mode EXE – Awesome Utility
  • SCOM Grey Agent MP from SCC
  • The All Management Servers Pool has not reported availability
  • SCOM ACS Filter Events
  • SCOM ACS Modified SQL Stored Procedures
  • MMS 2012 Session Listing Download
  • SQL Database Stuck in Restoring Mode
  • SCOM Maintenance Mode Script
  • SCOM Active Directory Security Management Pack
January 2021
M T W T F S S
« Apr    
 123
45678910
11121314151617
18192021222324
25262728293031

About

This site is a collection of tools and tips that I needed to place in the cloud. I have given credit where credit is due and respect all the hard work of those in the SCOM community that are miles above me in terms of knowledge, experience and accolades.
© Copyright 2021 - SCOM GOD
Infinity Theme by DesignCoral / WordPress