• Skip to primary navigation
  • Skip to main content

jdgreen.io

The personal blog of James Green

  • Home
  • Technology
    • Announcements
    • Industry
    • Reviews/Guides
    • Tech Field Day
    • Interviews
  • Health
    • Food
    • Biohacking
    • Fitness
  • Faith
  • Book Notes
    • Business Books
    • Faith Books
    • Health Books
    • Technology Books
  • About
  • Show Search
Hide Search

Launch PowerCLI with a Connection Menu

James Green · Oct 18, 2013 ·

I get tired of waiting for PowerCLI to load and then typing Connect-VIServer over…and over… So I figured I’d do something about it. When I launch PowerCLI, I now get a pretty little menu that allows me to pick which vCenter server I want to connect to.

All you need to do to make this change for yourself is modify C:Program Files (x86)VMwareInfrastructurevSphere PowerCLIScriptsInitialize-PowerCLIEnvironment.ps1 to include this line:

[code]Connect-VIServer -Menu[/code]

I also opted to remove the help text that displays by default (telling you how to use Connect-VIServer, Get-VM, etc).

Here’s the reference page for the cmdlet if you’re curious about what else you can do: Reference

Let me know if you can think of ways to make this even more handy, or have a different spin on the idea!

VMware powercli

James Green is an enterprise IT consultant, a product of an amazing IT community, and a partner in ActualTech Media. He is a serial vExpert designee and a passionate Tech Field Day delegate and supporter. » Read Full Bio...

James Green: View My Blog Posts

Copyright © 2023 · Monochrome Pro on Genesis Framework · WordPress · Log in

Posting....