MEMCM PowerShell Validate Content (Green)

Barleyologist 116 Reputation points
2020-09-23T21:03:23.27+00:00

I would like to use a PowerShell to validate content on a DP has been distributed successfully. I have not been able to find a way to do this. What I can do is validate if the content was pushed to the DP but that does not tell me if it was successful or not (i.e. is the content status 'Green'). I can also 'Invoke-CMContentValidation', but this is not going to provide me feedback to it validity. My goal is for a PS script to Create App | Dist Content | Verify that content and report failed (i.e. Content Status circle is 'Red').

Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
459 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 40,881 Reputation points Microsoft Vendor
    2020-09-24T07:03:04.483+00:00

    @Barleyologist
    Thank you for posting in Microsoft Q&A forum.
    Here is a script written by Klaus Bilger, you may try it to see if it helps:
    https://gallery.technet.microsoft.com/Check-SCCM-Distribution-e34b428e#content


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments