Determine the amount of free space (in GB) for the c:\ drive

Welcome Forums General PowerShell Q&A Determine the amount of free space (in GB) for the c:\ drive

Viewing 2 reply threads
  • Author
    Posts
    • #271600
      Participant
      Topics: 4
      Replies: 4
      Points: 44
      Rank: Member

      This is what I have so far.

      Get-ciminstance -class cim_logicaldisk | where-object {$_.Freespace} select-object Freespace,DeviceID

      I need to convert it to GB and output it as that.  Any help would be appreciated.

      • This topic was modified 2 weeks, 5 days ago by Andrzac79.
    • #271708
      Participant
      Topics: 5
      Replies: 341
      Points: 586
      Helping Hand
      Rank: Major Contributor
    • #271789
      Participant
      Topics: 4
      Replies: 4
      Points: 44
      Rank: Member

      Thank you!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.