Peter van der Woude Posted July 25, 2013 Report post Posted July 25, 2013 ============================================================================================================================== To reach an even wider audience. This is a new tool, which I released this monday. >> Available via download here on the TechNet Galleries! <<============================================================================================================================== The script creates a form to show the Collection Details for a specific device. Normally, from within the console, it is hard to see what collection settings are all affecting the device. By running this script it will directly show the collection memberships of the device including the applicable deployments, maintenance windows, power settings and collections variables.It uses the ResourceId as input, so it can easily be used as a right-click action (see my own blog for an example). To use this script the following input variables are required: ResourceId - Specify the ResourceId of the device. SiteCode - Specify the site code of the ConfigMgr site. SiteServer - Specifify the site server name. Example: PowerShell.exe -ExecutionPolicy ByPass .\ShowCollectionDetails_v0_9p.ps1 -ResourceId 16777224 -SiteCode PTP -SiteServer PTSRVR02 Version 0.9 shows the following details: (New!) Tab – General; The Name of the Collections. (New!) Tab – General; The Id of the Collections. (New!) Tab – General; The Limiting Collection of the Collections. (New!) Tab – General; The Last Update of the Collections. (New!) Tab – General; The Last Membership Change of the Collections. Tab – Deployments; The Name of the Collections. Tab – Deployments; The Name of the targeted Deployments. Tab – Deployments; The Type of the targeted Deployments. Tab – Deployments; The State of the targeted Deployments. Tab – Variables; The Name of the Collections. Tab – Variables; The Name of the Collection Variable. Tab – Variables; The Value of the Collection Variable. (Updated!) Tab – Variables; The Type of the Collection Variable. Tab – Maintenance Windows; The Name of the Collections. Tab – Maintenance Windows; The Name of the Maintenance Window. Tab – Maintenance Windows; The Start Time of the Maintenance Window. Tab – Maintenance Windows; The Duration of the Maintenance Window. Tab – Maintenance Windows; The Recurrence of the Maintenance Window. Tab – Maintenance Windows; The Schedule of the Maintenance Window. Tab – Maintenance Windows; The Type of the Maintenance Window. Tab – Maintenance Windows; Whether the Maintenance Window is enabled or not. Tab – Power Management; The Name of the Collections. Tab – Power Management; The Name of the Non-Peak Power Plan. Tab – Power Management; The Name of the Peak Power Plan. Tab – Power Management; The Start Time of the Peak Power Plan. Tab – Power Management; The End Time of the Peak Power Plan. Tab – Power Management; The Wake-up Time of the devices in the Collection. Please let me know what you like and don't like about this script/ tool at: www.petervanderwoude.nl 1 Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted July 29, 2013 Report post Posted July 29, 2013 Hi Peter, thanks for sharing this extension. It's something from the "what we always wanted in Config Manager" category and pretty valuable. To get it running in the console i had to add the "-file" switch to the parameters section of the xml files. I also have a wish list already, if you don't mind and find some time to add it. 1) A new colum with the membership type (direct or query) in the general tab. 2) A new action button to remove the client from the selected collection(s), also in the general tab. Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted July 29, 2013 Report post Posted July 29, 2013 Thanks for the kind words! I wrote down your wishes and they might show up in a future release Quote Share this post Link to post Share on other sites More sharing options...
Yan Posted November 1, 2013 Report post Posted November 1, 2013 Hi Peter, thanks for sharing this extension. It's something from the "what we always wanted in Config Manager" category and pretty valuable. To get it running in the console i had to add the "-file" switch to the parameters section of the xml files. I also have a wish list already, if you don't mind and find some time to add it. 1) A new colum with the membership type (direct or query) in the general tab. 2) A new action button to remove the client from the selected collection(s), also in the general tab. Can you expand on adding the "-file" or can you post your xml files? I can't get it to work either standalone (multiple erros) or right click. standalone: Unable to find type [ordered]: make sure that the assembly containing this type is loaded. At D:\SCCMContentLib\ShowDeviceCollectionDetails\ShowCollectionDetails_v0_9p.ps1:528 char:34 + $WorkHash = [ordered] <<<< @{ + CategoryInfo : InvalidOperation: (ordered:String) [], RuntimeException + FullyQualifiedErrorId : TypeNotFound New-Object : Cannot validate argument on parameter 'Property'. The argument is null or empty. Supply an argument that i s not null or empty and then try the command again. At D:\SCCMContentLib\ShowDeviceCollectionDetails\ShowCollectionDetails_v0_9p.ps1:535 char:56 + $WorkObject = New-Object PSObject -Property <<<< $WorkHash + CategoryInfo : InvalidData: ( [New-Object], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.NewObjectCommand .... The Form comes up empty. Right click on a device: I see an empty command windows open and close then nothing. CM 2012 R2 on W2K8R2 $PSVersionTable.psversion Major Minor Build Revision ----- ----- ----- -------- 2 0 -1 -1 thanks EDIT: Works after updating to powershell 3.0 Quote Share this post Link to post Share on other sites More sharing options...