Como obtener todos los ResourcePool del VirtualCenter

Para aquellos que usaron powershell con VirtualCenter y notaron que cuando ejecutaban el comando
get-resourcepool  y obtenian una lista como la siguiente:

Name                                                                          
----                                                                          
Bolivia-Resources                                                             
DEV                                                                           
Dev-Subgroup                                                                  
Finance-Dept                                                                  
Finance-Dept-Bldg-A                                                           
inside                                                                        
O'Hare, IL                                                                    
QE                                                                            
Resources
Resources
Resources
Resources
Resources
Resources
Resources
Resources
Resources
Resources
Resources
Resources
Resources                                                                   
RP - 01                                                          
RP - O'Hare, IL                                                               
RP-Child                                                                      
RP-Child                                                                      
RP-Parent                                                                     
RP-Parent                                                                     
Spanish                                                                       
Sub-pool                                                                      
Test 2 Ñ                                                                      
TestAdded                                                                     
TestRP status                                                                 
vApp-Child                                                                    
vApp-Leaf                                                                     
vApp-Parent                                                                   


Resources que practicamente no se lo encuentra en el VC UI era incluida, esto es debido a que como se explica en el link
"Virtual machine hosts have a hidden resource pool named Resources, which is a parent of all resource pools of the host"
Entonces como hacer para que tu comando saque solamente los que estan visibles.

get-resourcepool Resources |  get-resourcepool | select name | sort-object name

Name                                                                          
----                                                                          
Bolivia-Resources                                                             
DEV                                                                           
Dev-Subgroup                                                                  
Finance-Dept                                                                  
Finance-Dept-Bldg-A                                                           
inside                                                                        
O'Hare, IL                                                                    
QE                                                                            
RP - 01                                                                       
RP - O'Hare, IL                                                               
RP-Child                                                                      
RP-Child                                                                      
RP-Parent                                                                     
RP-Parent                                                                     
Spanish                                                                       
Sub-pool                                                                      
Test 2 Ñ                                                                      
TestAdded                                                                     
TestRP status                                                                 
vApp-Child                                                                    
vApp-Leaf                                                                     
vApp-Parent                                                                   


 Espero que les sea util




Comentarios