using 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 ArticleRDM LUN size mismatch
While listing the size of RDM LUNs for a MSCS/WFCS database VM, noticed one LUN's size that i got using a PowerCLI script is different (180GB) than what is listed on vSphere Client devices screen...
View ArticleList VMFS and RAW disks with naa.id and multipath policy
Hi everyone, I need a powercli script that lists fields below disk naa.id - shows it as RDM or VMFS - Multipath Policy (Fixed or RR) Could anyone help me out? Thanks a lot.
View ArticleCan I get the memory usage of each process on ESX through powercli?
Hi,Can I get the memory usage of process on ESX?Like what "esxtop" command can do: ID GID NAME MEMSZ GRANT CNSM SZTGT TCHD TCHD_W %ACTV %ACTVS...
View ArticleHow to create LAG and assign uplinks?
Anyone know how to create a lag on a distributed switch and assign uplinks to it with PowerCLI 6.3? I can't seem to figure this out and Google has not been much help. Is this even possible to do with...
View ArticlePowercli to get RAID level
Dear all,.In our environment, ESXi will be installed on the local harddisk of the server. So, I would like to get the RAID level of the harddisk where the esxi is installed .If above is not possible,...
View ArticlePowerCLI won't work after clean, fresh installation
Hi All, I was working on some nice Powershell scripts but after my laptop crash I cannot seem to get it working anymore.Several clean, fresh installations of Windows 10 still i get errors; my...
View Articlecluster name of a resource pool
I am trying to find the name of the Cluster of a Resource Pool in vCenter. Tried running Get-ResourcePool, but couldn't find cluster info. My input would be - > name of ResourcePool > name of...
View ArticleCustom DNS Suffixes
Hi All, How do I add a simple DNS suffix such as a wildcard "*.ldn" or even "ldn" to custom dns suffixes? I can add suffixes such as "mydomain.local" etc but not ldn on its own I have to manually add...
View ArticleRegistering copied VM in Power CLI 6.3 / vCenter 6 / ESXi6 fails
Power CLI script copies paused VM and registers clone to vcenter with new name. The script worked under vCenter 5.5, Power CLI 5.5 w/ ESXi 5.1, but on Vcenter 6.0 / Power CLI 6.3 / ESXi 6.0 this...
View ArticleIs there a way to specify the EXACT OS Version installed on your VMs?
I am looking to see what VMs I have that are Windows 2012 R2. I wrote a quick script (below) to list all of my 2012 VMs, but there are over 50 and I was looking for an easy way to only list the VMs...
View ArticleExport VM as an OVA file using powercli - unexpected error
I am trying to export an ova-file using powercli but with no success. It do work when I login with the same user in the vSphere client but not with powercli. Get-VM -Name "my test VM 150505 12345" |...
View ArticleError while configuring Infrastructure Traffic Resource
hi, im trying to configure some Infrastructure Traffic Resource, but while creating a dpec object i get this error: $dvswitch = get-vdswitch | select -First 1 $spec = New-Object...
View ArticleSelecting specific value of a property
Get-VIEvent-Start (Get-Date).AddHours(-14) -MaxSamples ([int]::MaxValue) |where {$_.GetType().Name -eq"TaskEvent"} Lists all TaskEvents from the last 14 hours - goodHowever, I want to select...
View ArticleDisable VAAI ATS by powercli
Hi all, I like to disable VAAI ATS with the below KB. How Can I apply this to my specific HA cluster all at once? Thanks PowerCLI: Get-AdvancedSetting -Entity VMHost-Name -Name VMFS3.UseATSForHBOnVMFS5...
View ArticleHow do I list all the vApps (and VMs in each vApp) in all of an...
We are transitioning from vCloud Director 5.5 (VCD) to vRealize Automation 7 Standard (vRA). I am tasked with moving the 500 VMs that are in catalogs under VCD into vRA. Here is my psuedo code: foreach...
View ArticleVCD VM Migration
What is the best way to use PowerCLI to migrate a virtual machine from vCloud Director to vRealize automation?
View ArticlePowerCLI, vSphere 6.0 bug? Missing "disk.used.latest" StatType for interval 7200
I currently have a ticket open for this with VMware support and they keep giving me the runaround on this so I am hoping to enlist the members of this community to determine whether this is a bug or...
View ArticleEager Zeroed Thick Automation
Hello,I know that you can set a vmdk Eager Zeroed in the vc client but is there a way to set that value in vco or python for automation? As far as i know I can only set to either think or thin
View ArticleScript need
can any one please help me in writing the script for the below requirements. I am using the Power CLI Vesrion 2.0. Script 1(Cluster level):Number of Host in Cluster:Number of VM's in Cluster:Number of...
View Article