简体   繁体   中英

powercli access VMs without connecting to a vCenter

I need to write a PowerCLI script that gets an argument with a name of a virtual machine, and returns the VM's host name. The catch is, I shouldn't connect to the VC.

thanks for all your help (:

PS: do any of you guys know how to connect the PowerCLI to the active directory? That'll help me in other scripts I need to make.

Thank you! (:

This is not possible.

You would either need to authenticate with vCenter or with the ESXi host.

It is not possible to pull VM information without authentication as this would be quite a large security risk.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM