# How to display only filesystemobjects from PSDrive command

**URL:** <https://forums.powershell.org/t/how-to-display-only-filesystemobjects-from-psdrive-command/11359>\
**Category:** PowerShell Help\
**Created:** [September 24, 2018, 9:21am UTC](https://forums.powershell.org/t/how-to-display-only-filesystemobjects-from-psdrive-command/11359 "2018-09-24T09:21:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek-b-leo](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@abhishek-b-leo](https://forums.powershell.org/u/abhishek-b-leo)\
**Post date:** [September 24, 2018, 9:21am UTC](https://forums.powershell.org/t/how-to-display-only-filesystemobjects-from-psdrive-command/11359/1 "2018-09-24T09:21:43Z")

</div>

How to get a list of objects which has Provider=“FileSystem”

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [September 24, 2018, 9:22am UTC](https://forums.powershell.org/t/how-to-display-only-filesystemobjects-from-psdrive-command/11359/2 "2018-09-24T09:22:47Z")

</div>

If you mean using Get-PSDrive, just pipe to Where-Object and specify the filter criteria. Or, use the -Provider switch of Get-PSDrive.

---

<div class="post-metadata">

**Author:** ![abhishek-b-leo](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@abhishek-b-leo](https://forums.powershell.org/u/abhishek-b-leo)\
**Post date:** [September 24, 2018, 9:54am UTC](https://forums.powershell.org/t/how-to-display-only-filesystemobjects-from-psdrive-command/11359/3 "2018-09-24T09:54:55Z")

</div>

I got the collection from get-psdrive and since provider is sort of .net property of type System.Management.Automation.ProviderInfo Provider {get;}

I had to compare with the collection object’s property like

$b[1].Provider.Name which was actually a filesystem type.

Output from my pc

Name Used (GB) Free (GB) Provider Root CurrentLocation

* * *

Alias Alias  
C 168.96 492.78 FileSystem C:\ Users\Abhishe

---

<div class="post-metadata">

**Author:** ![ta11ow](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/ta11ow/32/131_2.png) [@ta11ow](https://forums.powershell.org/u/ta11ow)\
**Post date:** [September 24, 2018, 11:42am UTC](https://forums.powershell.org/t/how-to-display-only-filesystemobjects-from-psdrive-command/11359/4 "2018-09-24T11:42:08Z")

</div>

Get-PSDrive -PSProvider FileSystem

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/how-to-display-only-filesystemobjects-from-psdrive-command/11359/5 "2024-05-16T20:34:29Z")

</div>


