<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
      <title>kassidy.dev</title>
      <link>https://kassidy.dev</link>
      <description>If the fan gets loud, it&#39;s thinking. Leave it alone.</description>
      <generator>Zola</generator>
      <language>en</language>
      <atom:link href="https://kassidy.dev/rss.xml" rel="self" type="application/rss+xml"/>
      <lastBuildDate>Tue, 25 Mar 2025 00:00:00 +0000</lastBuildDate>
      <item>
          <title>Get CM Objects from a Container</title>
          <pubDate>Tue, 25 Mar 2025 00:00:00 +0000</pubDate>
          <author>kassidy</author>
          <link>https://kassidy.dev/blog/get-cmobjects/</link>
          <guid>https://kassidy.dev/blog/get-cmobjects/</guid>
          <description xml:base="https://kassidy.dev/blog/get-cmobjects/">&lt;p&gt;Before you get started make sure you have read the following page. &lt;a href=&quot;../get-cmcontainers/&quot;&gt;Get CM Containers&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now that you know how to find Containers and view what information they contain, lets get all the objects inside of the container located at &lt;code&gt;ABC:\DeviceCollection\Folder1\Department&lt;/code&gt;&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #A9B1D6; background-color: #1A1B26;&quot; &gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS C:\Users\kassidy&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt; Get-Item&lt;/span&gt;&lt;span&gt; ABC:\DeviceCollection\Folder1\Department&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSPath                : AdminUI.PS.Provider\CMSite::&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;siteserver.contoso.com&lt;/span&gt;&lt;span&gt;\DeviceCollection\Folder1\Department&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSParentPath          : AdminUI.PS.Provider\CMSite::&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;siteserver.contoso.com&lt;/span&gt;&lt;span&gt;\DeviceCollection\Folder1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSChildName           : Department&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSDrive               : ABC&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSProvider            : AdminUI.PS.Provider\CMSite&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSIsContainer         : True&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SmsProviderObjectPath : SMS_ObjectContainerNode.ContainerNodeID&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;618&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ContainerNodeID       : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;618&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;FolderFlags           : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;FolderGuid            : 4A56A29C&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;C24E&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;4255&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;870C&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;CB11EAD48DD8&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;IsEmpty               : False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Name                  : Department&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ObjectType            : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;5000&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ObjectTypeName        : SMS_Collection_Device&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ParentContainerNodeID : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SearchFolder          : False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SearchString          :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SourceSite            : ABC&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We can do this by utilizing the &lt;code&gt;Invoke-CMWmiQuiery&lt;/code&gt; cmdlet. You will need some information from the container to help create the WMI query. We will need the ContainerNodeID, ObjectType, ObjectTypeName, and an InstanceKey for that object. How do I find the instance key? I find the easiest way to find this is to run a query against just the ObjectTypeName. Look at the example below, in the SmsProviderObjectPath field the data is represented as [ClassName].[UniqueKey].&lt;/p&gt;
&lt;p&gt;Note that the actual class is SMS_Collection not SMS_Collection_Device. If you look at the UserCollection container you&#39;ll see that it shows as SMS_Collection_User.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #A9B1D6; background-color: #1A1B26;&quot; &gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS ABC:\&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #C0CAF5;&quot;&gt; $Query&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt; = &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #9ECE6A;&quot;&gt;select * from SMS_Collection&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS ABC:\&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt; Invoke-CMWmiQuery&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt; -&lt;/span&gt;&lt;span&gt;Query &lt;/span&gt;&lt;span style=&quot;color: #C0CAF5;&quot;&gt;$Query&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SmsProviderObjectPath          : SMS_Collection.CollectionID&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;=&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #9ECE6A;&quot;&gt;ABC0000B&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With the information gathered from above lets build our query to list the objects!&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #A9B1D6; background-color: #1A1B26;&quot; &gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C0CAF5;&quot;&gt;$Query&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt; = &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #9ECE6A;&quot;&gt;select * from SMS_Collection where CollectionID is in(select InstanceKey from SMS_ObjectContainerItem where ObjectType=&amp;#39;5000&amp;#39; and ContainerNodeID=&amp;#39;618&amp;#39;)&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;Invoke-CMWmiQuery&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt; -&lt;/span&gt;&lt;span&gt;Query &lt;/span&gt;&lt;span style=&quot;color: #C0CAF5;&quot;&gt;$Query&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If the query was created correctly you should see a lot of information scroll past. Store these in a variable to interact with them using the various cmdlets for collections. You can also query based on the path. This way appears to be rather resource heavy, and can run kinda slow. The previous example is my preferred method.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #A9B1D6; background-color: #1A1B26;&quot; &gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C0CAF5;&quot;&gt;$Query&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt; = &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #9ECE6A;&quot;&gt;select * from SMS_Collection where ObjectPath = &amp;#39;/Folder1/Department&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;Invoke-CMWmiQuery&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt; -&lt;/span&gt;&lt;span&gt;Query &lt;/span&gt;&lt;span style=&quot;color: #C0CAF5;&quot;&gt;$Query&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In some cases you will need to convert your data to an IResultObject before you can use it with the available PowerShell cmdlets. This used to be the case anytime I ran &lt;code&gt;Invoke-CMWmiQuery&lt;/code&gt;, but in some of the newer versions it appears to be doing the conversion for me. Take a look at &lt;code&gt;ConvertTo-CMIResultObject&lt;/code&gt; and &lt;code&gt;ConvertFrom-CMIResultObject&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If you can&#39;t figure out what format your object is, pipe your object into gm. Take note of the type name&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #A9B1D6; background-color: #1A1B26;&quot; &gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS ABC:\&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #C0CAF5;&quot;&gt; $items&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt; |&lt;/span&gt;&lt;span&gt; gm&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;   TypeName: IResultObject&lt;/span&gt;&lt;span style=&quot;color: #51597D;font-style: italic;&quot;&gt;#SMS_Collection&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
      </item>
      <item>
          <title>Get CM Containers</title>
          <pubDate>Fri, 14 Mar 2025 00:00:00 +0000</pubDate>
          <author>kassidy</author>
          <link>https://kassidy.dev/blog/get-cmcontainers/</link>
          <guid>https://kassidy.dev/blog/get-cmcontainers/</guid>
          <description xml:base="https://kassidy.dev/blog/get-cmcontainers/">&lt;p&gt;I may sometimes refer to folders as containers and the items inside of them as nodes. It is important to understand that when you create a folder in SCCM it is not really a folder. What you are actually interacting with is a CM Object. What are CM Objects? You can read the Microsoft documentation here &lt;a rel=&quot;external&quot; href=&quot;https://docs.microsoft.com/en-us/mem/configmgr/develop/core/understand/configuration-manager-objects-overview&quot;&gt;CM Objects&lt;/a&gt;. But the best TL:DR I can give is that they are Instances of CM specific WMI classes. So when browsing the PSDrive you created and you run &lt;code&gt;Get-ChildItem ABC:\DeviceCollection&lt;/code&gt; it is returning a list of all containers at the root of Device Collections, which are the WMI classes for Device Collections. Take a look at the example output below. Notice that multiple containers are returned (more than I have shown here).&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #A9B1D6; background-color: #1A1B26;&quot; &gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS ABC:\&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt; Get-ChildItem&lt;/span&gt;&lt;span&gt; .\DeviceCollection&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSPath                : AdminUI.PS.Provider\CMSite::&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;siteserver.contoso.com&lt;/span&gt;&lt;span&gt;\DeviceCollection&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSParentPath          : AdminUI.PS.Provider\CMSite::&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;siteserver.contoso.com&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSChildName           : DeviceCollection&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSDrive               : ABC&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSProvider            : AdminUI.PS.Provider\CMSite&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSIsContainer         : True&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SmsProviderObjectPath : SMS_ObjectContainerNode.ContainerNodeID&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ContainerNodeID       : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;FolderFlags           : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;FolderGuid            : 8D4A816D&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;E5B5&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;44D0&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;8D3B&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;ED3BDBE42CDE&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;IsEmpty               : False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Name                  : All Systems&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ObjectType            : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;5000&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ObjectTypeName        : SMS_Collection_Device&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ParentContainerNodeID : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SearchFolder          : False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SearchString          :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SourceSite            : ABC&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSPath                : AdminUI.PS.Provider\CMSite::&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;siteserver.contoso.com&lt;/span&gt;&lt;span&gt;\DeviceCollection&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSParentPath          : AdminUI.PS.Provider\CMSite::&lt;/span&gt;&lt;span style=&quot;color: #0DB9D7;&quot;&gt;siteserver.contoso.com&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSChildName           : DeviceCollection&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSDrive               : ABC&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSProvider            : AdminUI.PS.Provider\CMSite&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PSIsContainer         : True&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SmsProviderObjectPath : SMS_ObjectContainerNode.ContainerNodeID&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;40&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ContainerNodeID       : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;40&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;FolderFlags           : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;FolderGuid            : FC17345A&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;AEED&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;41F2&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;ABF0&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;-&lt;/span&gt;&lt;span&gt;4B9854DCE19D&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;IsEmpty               : False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Name                  : All Unknown Computers&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ObjectType            : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;5000&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ObjectTypeName        : SMS_Collection_Device&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ParentContainerNodeID : &lt;/span&gt;&lt;span style=&quot;color: #FF9E64;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SearchFolder          : False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SearchString          :&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SourceSite            : ABC&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now lets try running &lt;code&gt;Get-ChildItem ABC:\DeviceCollection\Folder1&lt;/code&gt; and &lt;code&gt;Get-Item ABC:\DeviceCollection\Folder1&lt;/code&gt; notice anything different? We can use Get-Item to just return the parent at that location or Get-ChildItem to return all of its children.&lt;/p&gt;
&lt;p&gt;You can use this information to get all containers on the site. Not sure what container types are available? Just &lt;code&gt;ls ABC:&lt;/code&gt; and it will return all the container types available to you. Tab complete does work when navigating the drive. However it is very very slow to complete. I recommend you enter in the path instead.&lt;/p&gt;
&lt;p&gt;Here is a list of available container types as of writing.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #A9B1D6; background-color: #1A1B26;&quot; &gt;&lt;code data-lang=&quot;powershell&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS C:\Users\kassidy&lt;/span&gt;&lt;span style=&quot;color: #89DDFF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span&gt; ls ABC:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Application&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;BootImage&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ConfigurationBaseline&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ConfigurationItem&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;DeviceCollection&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Driver&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;DriverPackage&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;OperatingSystemImage&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;OperatingSystemInstaller&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Package&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Query&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SoftwareMetering&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SoftwareUpdate&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;TaskSequence&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;UserCollection&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;UserStateMigration&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;VirtualHardDisk&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SmsProvider&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
      </item>
    </channel>
</rss>
