Automation

 View Only
  • 1.  Datastore Lun folder names

    Posted Dec 03, 2015 07:03 PM

    We are decomm'ing servers and I am looking for the command that would list our the lun folder and file paths.

    Get-VM | ? {$_.Name -like "*nus-4*"} | ft name, powerstate,harddisks, ?

    Thank you!



  • 2.  RE: Datastore Lun folder names
    Best Answer

    Posted Dec 04, 2015 06:26 AM

    You mean something like this ?

    Get-VM | Get-HardDisk |

    Select @{N='VM';E={$_.Parent.Name}},

        @{N='PowerState';E={$_.Parent.PowerState}},Name,FileName 



  • 3.  RE: Datastore Lun folder names

    Posted Dec 04, 2015 07:53 PM

    Thanks again.  That is perfect!