Show Collection Details in ConfigMgr 2012 via PowerShell – Part 5 (Final): The General Information

>> Available via download here on the TechNet Galleries! <<

This week my post will be all about the end result of my series, about showing the Collection Details, of a device, via a PowerShell form. I changed a few small details and added another new tab, with more new information! This new tab shows all the General information about the collections, of which the device is a member. As there is (almost) no more information that can be added, about collection information that affects the device, this will be the last addition to the script/ form. In case someone still misses some important, or logical information, please let me know!

Collection Details Form

This script creates a nice form to show the Collection Details of the specified device. The form shows all of the following information about the collections, of which the device is a member:

  • ShowCollDetaGen09(New!) Tab – General
    • (New!) The Name of the Collections.
    • (New!) The Id of the Collections.
    • (New!) The Limiting Collection of the Collections.
    • (New!) The Last Update of the Collections.
    • (New!) The Last Membership Change of the Collections.
  • Tab – Deployments
    • The Name of the Collections
    • The Name of the targeted Deployments.
    • The State of the targeted Deployments.
    • The Type of the targeted Deployments.
  • ShowCollDetaVar09Tab – Variables
    • The Name of the Collections
    • The Name of the Variable.
    • The Value of the Variable.
    • (Updated!) The Type of the Variable.
  • Tab – Maintenance Windows
    • The Name of the Collections
    • The Name of the Maintenance Window.
    • The Start Time of the Maintenance Window.
    • The Duration of the Maintenance Window.
    • The Recurrence of the Maintenance Window.
    • The Schedule of the Maintenance Window.
    • The Type of the Maintenance Window (including the, in R2, new type, for Software Updates).
    • Whether the Maintenance Window is enabled or not.
  • Tab – Power Management
    • The Name of the Collections
    • The Name of the applied Non-Peak Power Plan.
    • The Name of the applied Peak Power Plan.
    • The Start Time of the applied Peak Power Plan.
    • The End Time of the applied Peak Power Plan.
    • The Wake-up Time of the devices in the Collection.

Note: When there is there is no Limiting Collection, no targeted Deployment, no Deployment State, no Collection Variable, no Maintenance Window, or no Power Plan then the empty field(s) will show N/A (as in Not Applicable).

Usage

This script can be used, either ‘standalone’, or as a right-click option. The command line usage examples can be found in the script and on the download site. To use this script as a right-click action, follow the next steps:

  • Close the Configuration Manager Console.
  • Create the folder C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\XmlStorage\Extensions\Actions\ed9dee86-eadd-4ac8-82a1-7234a4646e62.
  • Create the folder C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\XmlStorage\Extensions\Actions\3fd01cd1-9e01-461e-92cd-94866b8d1f39.
  • Create in both new folders a new XML file with the following content (keep an eye on the location of the PowerShell script, either place it on the location specified with the parameters, or change the location).
<ActionDescription Class="Group" DisplayName="Custom Actions" MnemonicDisplayName="Custom Actions" Description="Custom Actions" SqmDataPoint="53">
    <ShowOn>
        <string>ContextMenu</string>
    </ShowOn>

    <ActionGroups>
        <ActionDescription Class="Executable" DisplayName="Show Collection Details" MnemonicDisplayName="Show Collection Details" Description="Show Collection Details">
            <ShowOn>
                <string>ContextMenu</string>
            </ShowOn>
            <Executable>
                <FilePath>PowerShell.exe</FilePath>
                <Parameters>-ExecutionPolicy ByPass -WindowStyle Hidden "D:\Data\PS_ShowCollectionDetails\ShowCollectionDetails_v0_9p.ps1" -ResourceId "##SUB:ResourceId##" -SiteCode "##SUB:SiteCode##" -SiteServer "##SUB:__Server##"</Parameters>
            </Executable>
        </ActionDescription>
    </ActionGroups>
</ActionDescription>
  • ShowCollDetaRC09Start the Configuration Manager Console.

Availability

As of now this new 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

2 thoughts on “Show Collection Details in ConfigMgr 2012 via PowerShell – Part 5 (Final): The General Information”

  1. I couldn’t get this to work, the new right-click option was present and a PS windows ran but no form.
    I was tearing my hair out as another addin was working perfectly, it had slightly different PowerShell parameters but virtually the same, then I noticed your parameters have missed the -file before the script 🙂

    Excellent tool !

    Reply

Leave a Reply to Peter van der Woude Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.