# Out-GridView missing data (isn't visible)

**URL:** <https://forums.powershell.org/t/out-gridview-missing-data-isnt-visible/16785>\
**Category:** PowerShell Help\
**Created:** [June 10, 2021, 9:12am UTC](https://forums.powershell.org/t/out-gridview-missing-data-isnt-visible/16785 "2021-06-10T09:12:09Z")\
**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:** [June 10, 2021, 9:12am UTC](https://forums.powershell.org/t/out-gridview-missing-data-isnt-visible/16785/1 "2021-06-10T09:12:09Z")

</div>

Hello,

I have a script which provides disk space in a bulk computers, but… the % column is missing the data, it’s appears as empty column. at the ISE console its shown well.

```auto
Get-CimInstance -ClassName Win32_LogicalDisk -ComputerName (Get-Content C:\servers.txt) -Filter DriveType=3 | 
    Select-Object systemname,DeviceID, 
        @{'Name' = 'Size (GB)'; 'Expression' = { [string]::Format('{0:N0}', [math]::truncate($_.size / 1GB)) } }, 
        @{'Name' = 'Free (GB)'; 'Expression' = { [string]::Format('{0:N0}', [math]::truncate($_.freespace / 1GB))}},
        @{'Name' = '(%)'; 'Expression' = { [string]::Format('{0:P}', $_.freespace / $_.Size )}} | Out-GridView

```

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [June 10, 2021, 9:19am UTC](https://forums.powershell.org/t/out-gridview-missing-data-isnt-visible/16785/2 "2021-06-10T09:19:29Z")

</div>

Gridview seems to have a problem with the name of the column. It works for me this way:

```auto
Get-CimInstance -ClassName Win32_LogicalDisk -ComputerName (Get-Content C:\servers.txt) -Filter DriveType=3 |
Select-Object -Property systemname, DeviceID,
@{Name = 'Size (GB)'; Expression = { [string]::Format('{0:N0}', [math]::truncate($_.size / 1GB)) } },
@{Name = 'Free (GB)'; Expression = { [string]::Format('{0:N0}', [math]::truncate($_.freespace / 1GB)) } },
@{Name = 'Free (%)'; Expression = { [string]::Format('{0:P}', $_.freespace / $_.Size ) } } | 
Out-GridView

```

---

<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:** [June 10, 2021, 9:21am UTC](https://forums.powershell.org/t/out-gridview-missing-data-isnt-visible/16785/3 "2021-06-10T09:21:22Z")

</div>

Yes! worked well, thanks.

---

<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:24pm UTC](https://forums.powershell.org/t/out-gridview-missing-data-isnt-visible/16785/4 "2024-05-16T20:24:15Z")

</div>

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


