# Export-CSV InputObject value

**URL:** <https://forums.powershell.org/t/export-csv-inputobject-value/15467>\
**Category:** PowerShell Help\
**Created:** [January 9, 2021, 8:51pm UTC](https://forums.powershell.org/t/export-csv-inputobject-value/15467 "2021-01-09T20:51:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunaguero](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kunaguero](https://forums.powershell.org/u/kunaguero)\
**Post date:** [January 9, 2021, 8:51pm UTC](https://forums.powershell.org/t/export-csv-inputobject-value/15467/1 "2021-01-09T20:51:48Z")

</div>

Hello,

&nbsp;

I have a script to get quota usage on my server:

```
Get-FsrmQuota | Select-Object Path,
@{Label="Size GB"; Expression = { "{0:F0}" -f ($_.Size/1GB) }},
@{Label="Usage GB"; Expression = { "{0:F0}" -f ($_.Usage/1GB) }} |
Format-Table -AutoSize
```

&nbsp;

what I wanted is to export it to .csv file.

tried:

| Export-Csv -Path “C:\Users\123.csv” - output was strange (like a SID instead of data)

Export-Csv -Path “C:\Users\123.csv” (no pipeline) - message received:

Supply values for the following parameters:  
InputObject:

&nbsp;

I also tried Google search and add `-NoTypeInformation`

please help

&nbsp;

---

<div class="post-metadata">

**Author:** ![matt-bloomfield](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-bloomfield](https://forums.powershell.org/u/matt-bloomfield)\
**Post date:** [January 10, 2021, 12:57am UTC](https://forums.powershell.org/t/export-csv-inputobject-value/15467/2 "2021-01-10T00:57:48Z")

</div>

The Format-\* cmdlets should not be followed by other cmdlets as the formatting instructions they produce cannot be interpreted by most cmdlets (there are a few exceptions). Remove the Format-Table command and pipe your data straight to Export-CSV.

---

<div class="post-metadata">

**Author:** ![kunaguero](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@kunaguero](https://forums.powershell.org/u/kunaguero)\
**Post date:** [January 10, 2021, 1:31am UTC](https://forums.powershell.org/t/export-csv-inputobject-value/15467/3 "2021-01-10T01:31:11Z")

</div>

[quote quote=285013]The Format-\* cmdlets should not be followed by other cmdlets as the formatting instructions they produce cannot be interpreted by most cmdlets (there are a few exceptions). Remove the Format-Table command and pipe your data straight to Export-CSV.

[/quote]

Sir, thank you.

---

<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:28pm UTC](https://forums.powershell.org/t/export-csv-inputobject-value/15467/4 "2024-05-16T20:28:03Z")

</div>

Closed on May 16, 2024, 8:28pm UTC


