Array of all IP address in vCenter
I am trying to populate a list of all VMs with VMTools and IP information and am exporting it to CSV I have got some VMs which have multiple IPs so I wanted to list all the IPs in the respective IP...
View ArticlePowerCLI and updateipmi
I am trying to set the IPMI/iLO settings for Power Management on a single ESX host which resides in one of our datacenters, and I am encountering some problems. The server is a Dell R610 with an iDRAC...
View ArticleSet Default PSP Round Robin ESXi 5.0U1
This used to work in vSphere4, but doesn't seem to be working now $esxCli=Get-EsxCli$esxCli.nmp.satp.setdefaultpsp(“VMW_PSP_RR”, “VMW_SATP_DEFAULT_AA”)Error:You cannot call a method on a null-valued...
View ArticleCan you use * in conditionals?
Hey All, Simple scenario.We have VM's that somewhere in their name have 'TR' to designate them as a training machine.I have a script that already filters VM's from the Get-VM cmdlet, but I was recently...
View Article.FreeSpaceGB & .CapacityGB properties of Datastore not working correctly.
Hello everyone, First time posting here, and not really sure where to get this fixed, but it seems that the .FreeSpaceGB & .CapacityGB properties of Datastores do the opposite of what you think it...
View Articlevm to lun id number
Hi All,I am looking to obtain vm name to lun id number with output to csv. I'm looking for this output: VM LUNIDNumber----- --------------------VM001...
View ArticleMaking New-VIProperty Easier
Please read the blog post below to find out more about the attached PowerShell Module. http://blogs.vmware.com/vipowershell/?p=1342
View ArticlePowerCLI script to list resource pools and shares
I am looking around to see if I can figure out how to create a script to list out all of the clusters in a vCenter server, then list out all of the resource pools within that cluster, and then list out...
View ArticlePowerCli to pull RDM info
I use the following script to pull matrix from all my vCenter's. We have some RDM's that I want to capture in this as well... is it doable? When I say capture... Im looking to pull the # of RDM's as...
View ArticleIneficient script ?
Hi all I'm running a script against all our clusters every couple of hours to collect which host (and VC) each VM is running on, so that critical servers can be found quickly in the event a VC fails....
View ArticleException: You have modified the global:DefaultVIServer and...
Hi, I've been running into an issue attempting to retrieve information from multiple Virtual Center servers using the PowerCLI in a multi-threaded environment using C#. Essentially, in one test...
View Articleunable to connect esx host or vcenter server via powercli (Unable to run...
Dear team, Once i open powercli windows, i m unablwe to connect ESX Host or vcenter server, it's giving me the follwoing error ... Plz help regardsMr VMware
View ArticleScript required for vsphere
Powershell script needed to to extract the bellow information from selected clusters. ESX connectivity to the DatastoresESX network connectivity,HA settingsESX patch levelHBA FirmwarePowerpath...
View ArticleRead VMHosts-Serialnumber via PowerCLI....possible?
Hi, is ist possible to read the ESX-Host-Serialnumber? Thx in advance... Chakoe
View Articleusing powercli to control limit disk iops
Hey there, I need to limit the iops of the disks connected to my virtual machines via powercli. I am using the following command :Get-VM 'vm_name' | Get-VMResourceConfiguration |...
View ArticlePowerCLI script to find disconnected VMs
Dear team, In my environment many vms are poweredon but not connected on a network, i want powercli script which list these kind of vms which r poweredon but no connected on a network. Request you to...
View ArticleBest Way to Encapsulate PowerCLI Scripts
I want to write and use scripts that require the PowerCLI commands. As long as they are run from the special "PowerCLI icon", all is well. They'll run just fine. However, I'd like to be able to simply...
View ArticleHow can I add a Portgroup to a VM
I have been trying to add a portgroup to a VM via the PowerCLI. The command I am using is Get-VM -Name 1 | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName dvPortGroup3 and the error I get is as...
View ArticleManaging screen output from PowerCLI cmdlets?
The output I get shown from running cmdlets in my script varies, sometimes there's quite a lot of info written to screen other times there's none, but I can't figure out why. What do I do to manage the...
View ArticleHow to check a VIObject's status
I am planning to write a PowerCLI script to do cold-migrate of VMs. Move-VM will failif a VM is not completely powered off. My script looks something like this:------------$vm = get-vm $vmname if...
View Article