web analytics

Blog

Quick and Dirty Management Point Check

Posted by:

To check your Configuration Manager hierarchy Management Point statuses

  1. Download Get-CMSMPStatus.zip
  2. Run the Get-CMSMPStatus.ps1 on your Central or Primary site with the following parameters:

Get-CMSMPStatus.ps1 -SiteCode PS1 -SiteServer Localhost -OutPut c:\temp\MPStatus.csv. This will create a CSV Report

Example

Example Output

Get-MPStatus_SampleOutPut

You can download the code examples from here
References
  1. http://www.ravichaganti.com/blog/?p=993
  2. http://jdhitsolutions.com/blog/2010/04/hey-are-you-awake/
  3. http://blogs.technet.com/b/otto/archive/2007/08/23/quick-and-dirty-web-site-monitoring-with-powershell.aspx


About the Author:

Kaido Järvemets is a developer, consultant, trainer specializing in Microsoft System Center Configuration Manager and PowerShell Solutions at Coretech. Kaido frequently speaks at European conferences and had his US debut as speaker at MMS April 2013. Kaido is well-known in the Configuration Manager communities where he’s a key player in the PowerShell game. Kaido host one of the most complete Configuration Manager PowerShell library’s in the world with hundreds of free code samples ready to download and implement – www.cm12sdk.net. Kaido has been awarded Microsoft Most Valuable Professional (MVP) in Microsoft Enterprise Client Management for his work with Configuration Manager from 2011 – to present. Kaido is the founder of System Center User Group Estonia in 2011.

Discussion

  1. senthamarai kannan  February 18, 2015

    Hi ,

    This is a good script, Which is going to help me a lot, one quick question
    When i tried to run this script in my environment in one of the primary, i can see the it can be able to process the MP which comes under the site, when it completes the check it support to create a CSV output file as per the script, but it didn’t i was getting below error, Could you please help me with this

    Export-Csv : Access to the path ‘C:\Temp’ is denied.
    At C:\kannan\mp.ps1:70 char:15
    + $EmptyArray | Export-Csv $OutPut -NoTypeInformation
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (:) [Export-Csv], UnauthorizedAccessException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.ExportCsvCommand

    Thanks

    (reply)
    • Kaido  February 27, 2015

      Just change the location. You dont have access to write C:\ drive.

      (reply)

Add a Comment