VMware Cloud Community
rbmadison
Contributor
Contributor

Get-ConsoleURL vmname

Is this functionality back in? If not, is there any way to do this now using some other method? I have support users and navigating the VC WI is complicated for them. I'd like to just have the type the VM name and open a browser to the console of that VM.

Thanks

Reply
0 Kudos
4 Replies
erickmiller
Enthusiast
Enthusiast

I concur. This would be a fabulous feature to have in the Toolkit!

Eric K. Miller, Genesis Hosting Solutions, LLC

- Lease part of our ESX cluster!

Eric K. Miller, Genesis Hosting Solutions, LLC http://www.genesishosting.com/ - Lease part of our ESX cluster!
Reply
0 Kudos
rbmadison
Contributor
Contributor

Here's a powershell function to do just this. The orginal function was written by c_shanklin however when he pasted the code I think some things changed. Below is a screenshot of the working code with an additional vcname variable option. Let me know if you have problems running it. It would be nice it the forum supported /code tags.

Reply
0 Kudos
halr9000
Commander
Commander

Guys--there is a code tag feature. Click the blue question mark button at the top of the edit box and it'll explain. One of the community mods here gave me another tip, enclose the code in the noformat tag first, then code, that produces the best results. It looks like this (remove spaces between keywords and curly braces to make it work):

# insert code here

Hal Rottenberg

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
Reply
0 Kudos
rbmadison
Contributor
Contributor

Doesn't work. Even though you put the code and noformat it screws up what is being displayed. In this instance it's taking the code where System and Convert are and is putting some http: stuff in when it posts. It's not nessearily a format issue as it is a converting specific code statements to some weird http code.

Reply
0 Kudos