PowerCLI

 View Only
  • 1.  GUI based tool for executing invoke-vmscript

    Posted May 08, 2019 09:44 AM

    I am trying to develop a front end application(GUI) using powershell  but I am not clear from where to start. Can someone please suggest any tools or blogs if already exists.

    Or if any existing opensource applications for vMware Vms guestos management which can work using vmwaretools as a communication agent.

    Scenario: In an environment I need to perform multiple operations inside the guest OS. To achieve this I am using vmware tools as agent for all the communications. The invoke-vmscript cmdlet which is succeeded almost in all operations which I executed. So my thought is to design a simple GUI based tool which contains something like this.

    1. vCenter Name all the predefined vcenternames in a dropdownbox.

    2. User Name and Password in a text box.

    3. A combobox which contains a list of scripts which we can execute.

    4. A combobox with vmnames( In backend I will update RVtools report for daily which contains vmnames) If I select a specific vcenter in step one it will display list of vms resides on that vcenter). Once the vm is selected the script listed in step  3 will execute.

    5. Status bar which will show the out put of the executed script.

    Sample:



  • 2.  RE: GUI based tool for executing invoke-vmscript

    Posted May 08, 2019 10:05 AM

    There are many GUI builders available, community contributed and commercial.

    Just a few:

    PoshGUI

    PowerShell Studio 2019

    The alternative is to start from scratch and just use code.

    How to Create a GUI for PowerShell Scripts?

    Building a PowerShell GUI (Part 1)

    If you are looking for examples, I have some on my blog

    Event-O-Matic

    Stats Toolbox – A VSphere Server Performance Counter Tool



  • 3.  RE: GUI based tool for executing invoke-vmscript

    Posted May 17, 2019 05:25 AM

    Thanks for your suggestion LucD. The below shared examples are very helpful.

    Is there any existing tool which works using invoke-vm function?



  • 4.  RE: GUI based tool for executing invoke-vmscript

    Posted May 17, 2019 05:52 AM

    I don't immediately know of any example I'm afraid.
    But whether or not you use Invoke-VMScript, the GUI part should be independent of that part of the code.