ConfigMgr 2012 – Retrieving Objects in a Folder with PowerShell
(Originall posted 3/21/2014. Reposting for reference) The introduction of folders in the ConfigMgr 2012 console made for a great way to organize content within the ConfigMgr site. To see what objects might be under any given folder in the console is simple…but what if you want to do it programmatically with PowerShell? Folders in ConfigMgr can be accessed through the WMI namespace for the site (Root\SMS\Site_XXX) in two classes: SMS_ObjectContainerNode – Contains the list of all folder objects in…