How to get list of volume on 2008 R2 server using powershell

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 2 years, 2 months ago.

  • Author
    Posts
  • #18781
    Profile photo of Akhilesh Awadhiya
    Akhilesh Awadhiya
    Participant

    I have a server 2008r2 machine with many volumes presented to it. Is there a way, using powershell preferably, to get a quick list of all the lun numbers presented to it?
    As we can get in 2012 server Get-Volume (but when i am trying to run this command Get-Volume in 2008 R2 machine it's not avaible)

  • #18782
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Get-WmiObject -Class Win32_LogicalDisk

You must be logged in to reply to this topic.