Show Collection Details in ConfigMgr 2012 via PowerShell – Part 3: The Maintenance Windows

This week another addition to my series about showing the Collection Details, of a device, via a PowerShell form. This week I added another new tab, with more new information! This new tab show all the information about all the Maintenance Windows that affect the device.

Collection Details Form

This script creates a nice form to show Collection Details of the specified device. At this moment it shows all of the following information about the collections (of which the device is a member):

  • Tab – Deployments
    • The Name of the Collections, of which the device is a member. 
    • The Name of the targeted Deployments.
    • The State of the targeted Deployments.
    • The Type of the targeted Deployments.
  • Tab – Variables
    • The Name of the Collections, of which the device is a member. 
    • The Name of the Collection Variable.
    • The Value of the Collection Variable.
    • The Type of the Variable (for now only Collection Variable).
  • ShowCollDeta07(NEW!) Tab – Maintenance Windows
    • (NEW!) The Name of the Collections, of which the device is a member. 
    • (NEW!) The Name of the Maintenance Window.
    • (NEW!) The Start Time of the Maintenance Window.
    • (NEW!) The Duration of the Maintenance Window.
    • (NEW!) The Recurrence of the Maintenance Window.
    • (NEW!) The Schedule of the Maintenance Window.
    • (NEW!) The Type of the Maintenance Window (including the, in R2, new type, for Software Updates).
    • (NEW!) Whether the Maintenance Window is enabled or not.

Note: When there is there is no targeted Deployment, no Deployment State (like with Client Settings), no Collection Variable, or no Maintenance Window then the empty field(s) will show a star (*).

Usage

This script can be used, either ‘standalone’, or as a right-click option. The command line usage is like this PowerShell.exe -ExecutionPolicy ByPass .\ShowCollectionDetails_v0_7p.ps1 -ResourceId <ResourceId> -SiteCode <SiteCode> -SiteServer <SiteServer>. To see how to use this as a right-click option, have a look at my previous post.

Availability

As of now this third version of my Collection Details Form is publicly available via the TechNet Galleries. Please let me know what you think of the form and what else you would like to see in it.

Leave a Comment