VMware Cloud Community
TheVMinator
Expert
Expert

Testing OS configuration with PowerCLI

I'd like to see if PowerCLI can be used to do the following:

get a list of VMs which could be Windows or Linux

Check the OS for the following properties (if tools can pull them):

  • OS Hostname
  • OS fully qualified DNS domain name
  • IP address
  • AD domain that the OS guest is joined to (Windows guests only)
  • OS version
  • DNS Servers that the OS is configured to use
  • WINS Servers that the OS is configured to use (Windows Only)

Then check vcenter for the following properties:

  •         Cluster name the VM is in
  •         Resource Pool the VM is in
  •         Folder the VM is in

not sure what the limits of tools are on getting info from the OS - is there a ready guide for this somewhere?

Thanks!

0 Kudos
2 Replies
kunaludapi
Expert
Expert

Check this out might be helpful

vGeek: Extended VM inventory using powercli

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
TheVMinator
Expert
Expert

OK thanks

0 Kudos