ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    VMware Get Host Details from PowerCLI

    IT Discussion
    powershell vmware esxi powercli
    1
    1
    442
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dafyreD
      dafyre
      last edited by dafyre

      Hi All,
      I just came up with a handy dandy little tool (oh, God, shoot me now) for Collecting host information from your Vmware Hosts. It's been tested against both vSphere 6.7.0u3 and 7.0.1

      https://gitlab.com/dafyre/powershell-utils/-/raw/master/VMware/get-hostdetail.ps1

      ./get-hostdetail.ps1
      Make sure you are connected to one of your vSphere hosts or a vCenter server (with connect-viserver). Then, run the script with no parameters to have it spit out some of the server details to the screen.

      ./get-hostdetail.ps1 -vmhost esx01.mydomain.com
      Run the script with the -vmhost parameter to only check one host.

      ./get-hostdetail.ps1 -Report

      WIll generate a text file named after all servers (or you can specify a single server with the -vmhost parameter.

      Thoughts / Ideas for Improvements are welcome.

      1 Reply Last reply Reply Quote 3
      • 1 / 1
      • First post
        Last post