- Calculate vSphere 5 Licenses with Powershell (UPDATED) - VMware has announced the next generation of vSphere yesterday. Besides lots of new features, vSphere 5 also comes with a new licensing structure. For every licensed physical CPU, you get a certain amount of vRAM, which you will be able to allocate to virtual machine. Only the running VM’s will count towards your license limit. Curious [...] Related posts:
- Remove vmware memory limits with Powershell - Using Memory Limits in vmware vSphere can cause severe performance issues. The guest operating system assumes it can use all of the allocated memory, but vSphere will make sure the vm cannot use more than the memory limit. It does this by inflating a memory balloon using the balloon driver included with the vmware tools. [...] Related posts:
- Configure Syslog on Local Datastore with PowerCLI - Configuring a syslog folder is convenient for troubleshooting ESXi. But it’s a pain you-know-where to configure manually across all your ESXi servers. Luckily, PowerCLI can help out. This script creates a folder on the local datastore and configures ESXi to write the syslog in that folder. Enjoy! Hugo #Folder name you like $syslogFolderName = "syslog" #Connect to vCenter Connect-VIServer vcenter.domain.local #Loop through [...] Related posts:
- Convert Scripts to Module - I used to have all my common functions stored as separate scripts in a single folder. I’d load these through a few lines of code in my profile, looping through the script files and dot-sourcing them. Powershell v2.0 has a new feature called Modules. So how do you convert a bunch of scripts (containing functions) [...] Related posts:
- Set vApp Guest Shutdown - Annoyed by the default setting for VM’s inside a vApp? I was, because when you power down the vApp, the VM’s are powered down instead of being shutdown cleanly. It can be a tedious task to check and correct this setting for all your vApps. This little script solves that problem for you. Enjoy! $VC = [...] Related posts:
- Find LUN ID’s in VMware with Powershell - Determining the LUN ID for a specific LUN in your VMware Infrastructure used to be simple. It was listed as one of the properties of the datastore you selected in the VI Client. Nowadays, more often than not, I dont see the LUN ID in the vSphere Client. Instead, I see some sort of identifier [...] Related posts:
- Fix DCOM Event 10005 with Powershell - Do you get these events in your system log? The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. attempting to start the service ntmssvc with arguments “-Service” in order to run the server: {D61A27C6-8F53-11D0-BFA0-00A024151983} Symantec explains this is caused by disabling the Removable Storage Manager and provides [...] Related posts:
- Report vSphere Alarms with Powershell - Wow, vSphere vCenter Server has a lot of new alarms! Great for monitoring your environment. But a pain when it comes to documenting it. Thank God VMware for the PowerCLI! Just a few lines of code can do the documentation for you. Here’s how: # Report vSphere Alarms # by Hugo Peeters # www.peetersonline.nl #Region Variables $VCServer = "myVCServer" $Outfile = "D:\scripts\Alarms.txt" Connect-VIServer [...] Related posts:
- Add Vmx Path to VI Client using Powershell - The following script is a request from David Gontie, who was kind enough to comment on a previous post. He’d like to add the location of his vm’s to a custom field. This is especially handy if you store all the files for a vm in a single datastore. Here you go David: ############################## # Script created by Hugo Peeters [...] Related posts:
- Set VMware Snapshot Location with Powershell - Snapshots are m*th3rfcukers. If you’re not careful, they will mass-murder your vms. Yet they allow you to time-travel! You want to use them, but how to prevent a massacre? Here’s how: relocate the delta files. When you create a snapshot, the current state of the vm is preserved by leaving the disk files alone. All changes since [...] Related posts: