All Posts

I agree that registering 100 apps or more takes a long time, but if the desktop does not flash, you won`t need to display anything on screen while registering the apps.  So no matter how long it ... See more...
I agree that registering 100 apps or more takes a long time, but if the desktop does not flash, you won`t need to display anything on screen while registering the apps.  So no matter how long it takes, the user won't notice.  He can start using his workstation WHILE you're still registering the apps (except for a new app of course).  If you want to be sure you don't slow him down, you can even put a short delay between each registration to free up the CPU (and without the desktpo flashing, app registration might be much faster).
Hi We have had the same problem, so I'm glad to hear that there will be soon an update for the desktop refresh after each package registration. We implemented a workaround by hiding the desktop ... See more...
Hi We have had the same problem, so I'm glad to hear that there will be soon an update for the desktop refresh after each package registration. We implemented a workaround by hiding the desktop until the registration finished. A bigger problem is that the register process takes too long. Users don't want to wait more than 1 minute for the whole login process and they don't care about that the package repository contains hundred thinapps. They only see their own 5 apps. We try to avoid longer login times by registering common and pool-specific thinapps (vmware view) by using post-sync skripts and by detecting during the login process in which thinapp AD permission groups the user is. This improves the login time if the user has much less thinapps to register as the whole repository contains.
Yes, that's rather annoying. In the next release, we've added a "Don't refresh the desktop" flag for the Register method (numeric value 32) so you can fix this when that next release becomes avai... See more...
Yes, that's rather annoying. In the next release, we've added a "Don't refresh the desktop" flag for the Register method (numeric value 32) so you can fix this when that next release becomes available (sorry, I'm not allowed to talk about release dates in public) by using "Package.Register 33".
Hi, I came up with almost the same script, but I have a problem when I run it, everytime the "Package.Register 1" line is executed, the desktop flashes (I guess to reflect the possible addition/... See more...
Hi, I came up with almost the same script, but I have a problem when I run it, everytime the "Package.Register 1" line is executed, the desktop flashes (I guess to reflect the possible addition/removal of icons).  With over 100 ThinApp packages, this flashing get very annoying...  Do you have the same problem at your place ? Thanks, Yves
Franck, thank you so much!! It works.
Oops, answered too quickly... The right command line is:    /bin/vim-cmd solo/registervm [cfg path] [name(optional)] [resourcepool(optional)] Sorry. Franck
Thank you for your response!! However, 1)  How to find that command "Vmware-cmd"?  Our machine is located remotely. We can acess it via SSH. Would you like me know the path to find that command... See more...
Thank you for your response!! However, 1)  How to find that command "Vmware-cmd"?  Our machine is located remotely. We can acess it via SSH. Would you like me know the path to find that command if access via SSH? 2)  If that command can be run from local machine not remotely via SSH? Thank you again!
Hi Naiyan, From the Tech Support Mode console, you could try to run a script executing a "vmware-cmd <cfg> register" for each VM (<cfg> is the full path to the vmx file). RCLI and Powershell s... See more...
Hi Naiyan, From the Tech Support Mode console, you could try to run a script executing a "vmware-cmd <cfg> register" for each VM (<cfg> is the full path to the vmx file). RCLI and Powershell scripts should not work as they are read-only on the free version of ESXi. Good luck! Regards Franck
Is it possible to run a program or script to register a number of VMs in free licensed ESXi 4? Any comments are highly appreciated!! 
I'm looking for a basic java class that will access a vm through a vcenter server using the VMware APIs. Something as simple as one function to give the amount of memory for a VM. Does anyone... See more...
I'm looking for a basic java class that will access a vm through a vcenter server using the VMware APIs. Something as simple as one function to give the amount of memory for a VM. Does anyone have something like this? Thanks
Hi, I've tried the script, but run into an issue with system folders. We store all thinapps into subfolders on a drive d:\. Because of system folders like "recycler" and "system volume informati... See more...
Hi, I've tried the script, but run into an issue with system folders. We store all thinapps into subfolders on a drive d:\. Because of system folders like "recycler" and "system volume information" the script breaks. To avoid that, we modified the script with a simple if-condition for the subfolder attributes: ' Now do the sub folders Dim SubFolder For Each SubFolder in Folder.SubFolders ' Change DCasota 29.11.2010 if not SubFolder.Attributes AND 4 then ProcessFolder SubFolder, TAManagement end if
Hi, I am looking for some sample code to retrieve virtual disk info on a VM. I need to list total capacity of the virtual disk and free (or used) capacity of the disk. I have gotten... See more...
Hi, I am looking for some sample code to retrieve virtual disk info on a VM. I need to list total capacity of the virtual disk and free (or used) capacity of the disk. I have gotten far enough to get total capacity of virtual disk but I can't seem to find how much of it is used (or free). Below is part of my code. Any help will be appreciated. Thank you, Robert ManagedObjectReference[] datastores; String[][] typeinfo = new String[][] { new String[] { "HostSystem","name" }, }; ObjectContent[] arrayMor = getMOR(typeinfo); HostConnectInfo info = _service.queryHostConnectionInfo(objMor); HostListSummary hostInfo = info.getHost(); HostConfigSummary hostSummary = hostInfo.getConfig(); System.out .println("---- "); System.out.println("Host = " + hostSummary.getName()); VirtualMachineSummary vmarray[] = info.getVm(); for (int k = 0; k &lt; vmarray.length; k++) { VirtualMachineSummary vminfo = vmarray[k]; VirtualMachineConfigSummary vmSummary = vminfo.getConfig(); VirtualMachineConfigSummary vmConfig = vminfo.getConfig(); ManagedObjectReference vmMOR = vminfo.getVm(); // HostConnectInfo vmor_info = // _service.queryHostConnectionInfo(vmMOR); HostDatastoreConnectInfo[] datastore = info.getDatastore(); if (vmName.equalsIgnoreCase(vmSummary.getName())) { System.out.println("== VM name: " + vmSummary.getName()); System.out.println("\t\t # of Virtual Disks = "+ vmSummary.getNumVirtualDisks()); Object configObj = getDynamicProperty(vmMOR, "config.hardware.device"); if (configObj != null) { VirtualDevice vdAry[] = (VirtualDevice[])configObj; if (vdAry != null && vdAry.length &gt; 0) { for (int l = 0; l &lt; vdAry.length; l++) { VirtualDevice vdevice = vdAry[l]; System.out.println("vdevice "+vdevice.getClass().toString()); if (vdevice.getClass().toString().contains("VirtualDisk")) { VirtualDisk vd = (VirtualDisk)vdAry[l]; Description desc = vd.getDeviceInfo(); System.out.println(desc.getLabel()" Capacity = "desc.getSummary()); //Integer shares = vd.getShares().getShares(); } } } }
What script are you trying to execute? You may want to post your question in the PowerCLI specific forum to get further assistance - http://communities.vmware.com/community/vmtn/vsphere/automatio... See more...
What script are you trying to execute? You may want to post your question in the PowerCLI specific forum to get further assistance - http://communities.vmware.com/community/vmtn/vsphere/automationtools/vsphere_cli ========================================================================= William Lam VMware vExpert 2009,2010 VMware VCP3,4 VMware VCAP4-DCA VMware scripts and resources at: Twitter: @lamw Getting Started with the vMA (tips/tricks) Getting Started with the vSphere SDK for Perl VMware Code Central - Scripts/Sample code for Developers and Administrators VMware Developer Community If you find this information useful, please award points for "correct" or "helpful".
I am a bit confused. I have installed PowerCLi 4.1 and Powershell 1 and 2. I still can not get some scripts especially the HealthCheck script... do I still need to install the vmwar... See more...
I am a bit confused. I have installed PowerCLi 4.1 and Powershell 1 and 2. I still can not get some scripts especially the HealthCheck script... do I still need to install the vmware toolkit and perl sdk on the server? A Bit confused as to whats to install on the server to run automated scripts.. Any help will be great Cheers
Recursive registration of ThinApp packages Usage: RecursiveReg.vbs &lt;FolderName&gt; RecursiveReg will register all ThinApp entry points in FolderName and in any subfolders The registratio... See more...
Recursive registration of ThinApp packages Usage: RecursiveReg.vbs &lt;FolderName&gt; RecursiveReg will register all ThinApp entry points in FolderName and in any subfolders The registration will be per-user. Any entry points to which the user no longer has access (because of the PermittedGroups setting) and which are already registered will be automatically unregistered. Since this is based on the ThinApp SDK you'll obviously need ThinAppSDK.dll/ThinAppSDKSrvr.exe present and registered (using regsvr32) on the system. License: do whatever you like with it, but don't blame me or VMware. More formally: VMware Contributed Sample Code.pdf
I've seen a number of requests to add a "silent" switch to the ThinApp  AppSync.exe utility. Well, a completely silent AppSync can be performed  using the ThinApp SDK. This script takes the name ... See more...
I've seen a number of requests to add a "silent" switch to the ThinApp  AppSync.exe utility. Well, a completely silent AppSync can be performed  using the ThinApp SDK. This script takes the name of a ThinApp primary  data container and a URL as parameters, just like the AppSync.exe  utility. It will perform an update (if there's an update available), the  only feedback is via its exit code: 0 - Package was updated 1 - No update available 2 - Error occured Since this is based on the ThinApp SDK you'll obviously need  ThinAppSDK.dll/ThinAppSDKSrvr.exe present and registered (using  regsvr32) on the system. It shouldn't be difficult to extend this sample to run AppSync on a whole directory (or directory tree) of virtual apps. License:  do whatever you like with it, but don't blame me or VMware. More formally: VMware Contributed Sample Code.pdf
Attached file: Upload Fusion Support Information to VMware.workflow Description: This Automator workflow will assist you in uploading your collected Fusion Support Information to VMware for th... See more...
Attached file: Upload Fusion Support Information to VMware.workflow Description: This Automator workflow will assist you in uploading your collected Fusion Support Information to VMware for the TSE assigned to your SR to investigate (as described in the VMware KB article Uploading diagnostic information to VMware). Usage: Download the attached file and doubleclick it to uncompress it. Open the new folder and doubleclick the file inside (Upload Fusion Support Information to VMware.workflow) to open it in Automator. Click Run (in the top-right corner) to run the script. At the prompt, enter your Support Request number. Enter only the numeric portion of your Support Request number; do not include spaces, the pound sign (#), or the prefix "SR". Click OK. Select the support information bundle you've collected. (When you clicked Collect Support Information in Fusion, the bundle was placed on your Mac's desktop. The file name will begin with vm- and have the date. After a brief delay, this file will be uploaded to VMware's FTP site. Mail will launch (if not already started) in order to send an email to VMware Support letting them know that the support information has been uploaded. The address, subject, and body will be filled out for you. If you do not use Mail, you can simply quit the Welcome to Mail screen and close the pre-populated message. Feel free to copy the body into your own message to your support representative. License Agreement VMware Contributed Sample Code The sample code is provided "AS-IS" for use, modification, and redistribution in source and binary forms, provided that the copyright notice and this following list of conditions are retained and/or reproduced in your distribution. To the maximum extent permitted by law, VMware, Inc., its subsidiaries and affiliates hereby disclaim all express, implied and/or statutory warranties, including duties or conditions of merchantability, fitness for a particular purpose, and non- infringement of intellectual property rights. IN NO EVENT WILL VMWARE, ITS SUBSIDIARIES OR AFFILIATES BE LIABLE TO ANY OTHER PARTY FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES, ARISING OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THE SAMPLE CODE. You agree to defend, indemnify and hold harmless VMware, and any of its directors, officers, employees, agents, affiliates, or subsidiaries from and against all losses, damages, costs and liabilities arising from your use, modification and distribution of the sample code. VMware does not certify or endorse your use of the sample code.
Name: UploadFileToVMware Description: Uploads support logs to the VMware Support FTP site. Implements the steps in . Usage: Double-click on UploadFileToVMware.vbs, an Open File dialog will ... See more...
Name: UploadFileToVMware Description: Uploads support logs to the VMware Support FTP site. Implements the steps in . Usage: Double-click on UploadFileToVMware.vbs, an Open File dialog will appear. Navigate and select the file you wish to upload. Note: Only one file can be specified. Click on the Open button, another dialog will appear prompting for an SR number. Provide the SR number you are currently working on. Note: Only numeric values are accepted. Click on the OK button. A command prompt will appear and the directory creation and upload operation will run automatically, and a new e-mail will appear addressed to VMware support. Populate the body of the e-mail to indicate which files have been uploaded. Note: Sending the e-mail will notify the primary contact of the support request. License Agreement VMware Contributed Sample Code The sample code is provided "AS-IS" for use, modification, and redistribution in source and binary forms, provided that the copyright notice and this following list of conditions are retained and/or reproduced in your distribution. To the maximum extent permitted by law, VMware, Inc., its subsidiaries and affiliates hereby disclaim all express, implied and/or statutory warranties, including duties or conditions of merchantability, fitness for a particular purpose, and non- infringement of intellectual property rights. IN NO EVENT WILL VMWARE, ITS SUBSIDIARIES OR AFFILIATES BE LIABLE TO ANY OTHER PARTY FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES, ARISING OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THE SAMPLE CODE. You agree to defend, indemnify and hold harmless VMware, and any of its directors, officers, employees, agents, affiliates, or subsidiaries from and against all losses, damages, costs and liabilities arising from your use, modification and distribution of the sample code. VMware does not certify or endorse your use of the sample code.
You still did a fine job. Im no coder, but it looks like what i did works great. And yes you could pass a commandline option, and the use a select case statement to kick off multiple th... See more...
You still did a fine job. Im no coder, but it looks like what i did works great. And yes you could pass a commandline option, and the use a select case statement to kick off multiple threads.:D
Dang just 3 min of FAME for me.... Thanks for posting, great way for me to learn MT app creation.. Next 'we' should pass command line attributes into the .exe so 'all of use' can pick how... See more...
Dang just 3 min of FAME for me.... Thanks for posting, great way for me to learn MT app creation.. Next 'we' should pass command line attributes into the .exe so 'all of use' can pick how many vCPUs we want to peg.. or maybe a 'max' value to peg all the vCPUS.. I did time them for me the .exe is about ~2.5x faster than the .vbs ( ~0.5 sec on the .exe vs ~1.3 sec for the .vbs)