I want to get the volume details from a specific list of voulumes. Below is a section of the code that I am trying to get to work.
Get-Content Vol_BU_Owners_MTRAN.txt
Get-NaVol -name $_ | select name
This is the result.
apAVLcl2Ga
apAVLcl2Qquorum
apcl5Ga
apcl5Ga_T
apcl5Xdtc
apfinpapp
apidashcl6
apidashcl6_Q
apLIMcl2Ga
apLIMclQquorum
apTYMcl6Ga
apTYMcl6Qquorum
Name : apappcl5Qquorum
Name : apappcl5Qquorum_T
Name : apAVLcl2Ga
Name : apAVLcl2Qquorum ...
It is getting the volumes from the my list, then it is going back and gets the information from all of the Volumes on the filer.
I have tried several differant script itterations to try and resolve this isssue.
Here is another example.
Get-Content Vol_BU_Owners_MTRAN.txt | ForEach-Object {Get-NaVol $_ }
Any help will be appreciated.