Posts

Showing posts from January, 2018

Setting up Server Certificate for System Center Operational Manager (SCOM) Authentication.

Image
When an Operations Manager agent and management server are separated by either an untrusted forest or workgroup boundary, certificate-based authentication will need to be implemented. This Guide provides a description of the process setting up a new server certificate for use in System Center Operational Manager (SCOM) authentication. Perform the following to setup a new server certificate.     1.   Login to the server .     2.   Copy the MOMCertImport.exe tool from the installation media or from the \SupportTools\<platform> (i386 or ia64) directory to the root of the target SCOM Management Servers .     3.   Open a Command Prompt window and change the directory to the directory where MOMCertImport.exe is located, and then run MOMCertImport /Remove (if old certificate exists).     4.   Run momcertimport.exe /SubjectName <certificate subject name> . Results: ·  ...

Query list of servers for a specific event in the log

Image
If you encounter a situation When a KB package was installed, and you may need to get a list of servers that are pending reboot or just to see what systems are affected. First, identify a system that you know was affected and search Event Viewer for the patching event. Find the event id Identify the log name i.e. System or Setup Now you can use PowerShell to scan all the systems that were affected. Review comments in code below and make required changes #Written by Paul Zanbaka #start time change in order to narrow the date/time $StartTime = Get-Date -Year 2018 -Month 1 -Day 10 -Hour 12 -Minute 00 $EndTime = Get-Date   -Year 2018 -Month 1 -Day 11 -Hour 14 -Minute 00 #Enter the systems in Scan.txt foreach ( $ServerName in get-content C:\pzscripts\scan.txt ) { #This should be blank text file $File = "C:\pzscripts\found.txt" #Change Log Name, Event id and KB number try { write-Host ...