Powershell

FTP Site File Download Check (for 2-state monitor in OpsMgr 2007/2012)

This sample PowerShell script checks a remote FTP site avaiailability by connecting to the actual site, downloading a  text file and verifying the status code. The zip file download contains a script named with a _test suffix, designed for command line testing. The _prod version is designed for use in a two-state monitor using the […]

FTP Site Availability Check (for 2-state monitor in OpsMgr 2007/2012)

This sample PowerShell script checks a remote FTP site for avaiailability by connecting to the actual site and verifying the status code. The zip file download contains a script named with a _test suffix, designed for command line testing. The _prod version is designed for use in a two-state monitor using the OpsMgr 2007 R2 […]

Download Multiple FTP Files via Powershell

An extension of existing scripts, This PowerShell script leverages standard .NET methods to support download of multiple files from a remote FTP server. This version takes it’s input from a text file. This is a functional sample that could be modified or extended to support batch processing or for use in OpsMgr synthetic monitoring of […]

A Proper OpsMgr 2007 Overrides Report (PowerShell)

This PowerShell script retrieves all the overrides from your unsealed management packs, including all the details of the override, including target, value and the source rule or monitor. Results are output to a single Excel spreadsheet.

Reset Monitor State (in SCOM 2007)

by OpsMgr MVP Scott Moss, This code will get a list of all alerts that are closed that were created by a monitor, that are older than 1 day, and reset the monitor that created the alert. NOTE: Before running this script I would suggest getting a count of what your going to be resetting […]

Retrieve instances of a monitor in a critical state (in SCOM 2007)

by PowerShell MVP Marc van Orsouw, this PowerShell script (intermingled with bits of C#) will efficiently retrieve a list / count of monitors in a critical state in Operations Manager 2007. NOTE: This script requires PowerShell v2.0 To download, sign in and click the Download button at right.

#2 Automate your group creation with Powershell

One of our very good customers are managing servers with an dedicated internal administrator as a primary contact for each server. They are managing this one to one relation with an Excel sheet. A while ago we talked about automating this group creation with powershell, so the last time Jacob and I was discussing Powershell in […]

Automate your group creation with Powershell

One of our very good customers are managing servers with an dedicated internal administrator as a primary contact for each server. They are managing this one to one relation with an Excel sheet. A while ago we talked about automating this group creation with powershell, so the last time Jacob and I was discussing Powershell in […]