I need to generate the remote console url for all the vms in a given VC and export them to a txt file. From looking over the url I can see that VC encodes the vm-ID with base64. I dont see any cmdlet that will allow me to convert this string. Does anyone have any suggestions?
Can you eventually try to run through the script line-by-line with the PowerGui debugger ?
That would allow you to check the variables before and after each line.
I looked at the script you attached multiple times and ran it in my test environment and the URLs were created correctly.
As a side-remark, did you generate an URL from the web interface ?
Do these come out correctly ?
Ok so here is what I did...
I generated the URL's from web page it worked fine so nothing look wrong from there
I ran the script line by line same output
I ran it Vcenter 2.5 and Vcenter 4.0 same results
I ran it against different Vcenter with different version same issue
Any thing you can think off
Thanks for helping me
Ran it on my laptop which has VMware vSphere CLI installed, I am actually in a process of automating VM creation and supplying the VM URL to the user, most of the part has been completed, however I am stuck at generating the URL appropriately, the script I attached in my previous post scans a provided VC for all the VMs and returns back with their console URLs, I have asked the original script author for anything he can help us with.
Luc,.. thanks for your help.. I have tried your script as well as this perl script results are exactly same .. do you think we may be missing some thing on the computer itself
Hi, Can you help me with this.. I have been trying to get a dump pf URL's but seems like it never works for do you think I am missing some thing
Please read the thread
VMware vExpert 2009
If you find this information useful, please award points for "correct" or "helpful".