title: Selecting the TypeName of an Object in Powershell
body: <p>I am working on putting together a report for monitoring the ACLs for a series of data shares and when I run my script I get the results seen below in my screenshot.  As you can see, <code>Path: \\rest_of_path</code> is displayed above each object.  </p>
  
  <p>This looks like when I use <code>Get-Member</code>, <code>TypeName:</code> is shown in that position.  I want to be able to take that <code>Path</code> value and add it to my report so that I can produce something that looks like the output within the PowerShell console.  How can I do that?</p>
  
  <p><a href="https://i.stack.imgur.com/lSeA6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lSeA6.png" alt="Screenshot"></a></p>
  
  <p>Here is the code: (I'm using the NTFSSecurity module as seen here, <a href="https://blogs.technet.microsoft.com/heyscriptingguy/2014/11/23/weekend-scripter-manage-ntfs-inheritance-and-use-privileges/" rel="nofollow noreferrer">https://blogs.technet.microsoft.com/heyscriptingguy/2014/11/23/weekend-scripter-manage-ntfs-inheritance-and-use-privileges/</a>)</p>
  
  <pre><code>import-module -Name \\storagesrvr\it\!scripts\ntfssecurity -verbose
  
  $shares = get-content \\testserver\c$\tmp\share.list.txt
  
  $results = @()
  
  foreach($share in $shares){
      $ntfs = Get-NTFSAccess $share
      $results += $ntfs
  }
  </code></pre>