Migrating between vCenter servers, issues setting destination folder
I'm having an issue with a migration script I've written to migrate VMs between 2 VCs. The first part of the script works as designed (checks tools, right-sizes, and removes VM from inventory on the...
View ArticlePOWERCLI Script Resize VMFS Datastore
Hi, I have a problem when expanding datastores in 5.0.U1, U2, U3 versions. When large disk cabin, ESXi recognizes the new size, but in "Properties" Datastorage the button "Increase" this is disabled:...
View ArticleCopy-VMGuestFile A general system error occurred: Failed to generate URL
Hello, I am a newbie to powershellcli , i am tryign to copy a file from local machine to a vm I am using the command Get-VM -Name Win2k8R2_64_M8Copy-VMGuestFile -Source "c:\test.log" -Destination...
View ArticleSet resource pool CPU limit foreach resource pool
Thecompany have 14hosts and 1500VMsI decided tochallengethe appointmentof limitsto the resourcepoolsThe scriptcollects information aboutresourcepools, powered On virtual machine, the total number...
View ArticleTags Issues
Hi all , I tried A lot of script to get tags , and finally I found good script .I have 2 issues with this script .Script:Get-VM | ForEach-Object {$VM = $_$VM | ForEach-Object {$Report = "" |...
View ArticlePerenniallyReserved with PowerCli
Hi Admins Found this script in the forum which i think would solve some issues for me.Assistance with scrip to bulk set Perennially Reservations using Get-ESXCLi...
View ArticleCan not run Invoke-VMScript in parallel
Hello everyone! I create script which convert VM to template, then run converted VMs, then Invoke-VMScript. After this my script reboot, shutdown this VMs and convert VMs to templates. All this...
View ArticleSample Script: Creating an Empty vApp with vCloud PowerCLI
Hi Everyone, The New-CIVApp cmdlet does not allow us to create empty vApps (which can be useful when templating out network configurations, for example). This shortcoming can be overcome by calling the...
View ArticleModify Powershell script to NIC and HBA info
Hello,1) For HBA script -> Can anyone please modify below script to include-- Vendor (i.e. HBA make, QLOGIC etc)-- Device (i.e. vmhba1 or vmhba2) ESXi 5.0 U1 HBA Details: Power CLIESXi 5.0 U1 HBA...
View ArticlePowershell for getting ESXi info, NIC driver and firmware, HBA driver and...
Hello,Can anyone please provide me Powershell or PowerCLI script that can list; 1) ESXi info2) NIC driver and firmware3) HBA driver and firmware into Excel sheet? I do not mind if there are 3 separate...
View ArticlePowerCLI: OSCustomizationSpec does not support any -Timezone option which is...
OSCustomizationSpec (New-OSCustomizationSpec, Set-OSCustomizationSpec, etc) does not allow you to select a GMT without DST (UTC) time zone . The -Timezone option is defined as:Specifies the name or ID...
View ArticleUsing PowerCLI to remove vShield driver from VMWare Tools?
Looking for a little bit of help here, please:We have several hundred Windows 2012 servers in our environment and are having issues with the vShield driver bug in ESX 5.1 that causes a memory leak. I...
View Articlenet.throughput.usage.average
Get-VM *db* | Select Name, @{N="Avg Network Throughput MBPs";E={ [math]::Round((Get-Stat -Entity $_ -Start (Get-Date).AddDays(-1) -Stat "net.throughput.usage.average" | where {$_.Instance -eq ""}...
View ArticleUse powercli without UI
Hello I have created a powershell script with use some commands like :Connect-VIServer -Server $server -User ....Set-VM -VM $vm -SnapShot $snap -Confirm:$falseNew-Snapshot -VM $vm -Name $snapshotName...
View Articlecreate new vm in drs cluster without selecting specific host
Hello VMware Gurus, I want to create a vm using script, but I don't want to specify the host name, I want to place that vm on a host which has least resource utilization in terms of memory and cpu in a...
View ArticleHow to list vApps per Datastore
Hi Am looking for PowerCLI to export list of vApps per Datastore in my vCloud Director environment Get-CIDatastore only gives me information about the datastore, and this object cannot be piped to...
View ArticleVM shutdown
I am looking for a vm shutdown script... Script will work well but i have some Questions Or Clarifications that are needed $csv = import-csv C:\xxx.csv Foreach ($line in $csv) {Write-Host...
View Articleperformance issue on VMs
Hi Did any one face any kindly of performace isuue(i.e CPU,Memory,Network or Disk) with mismatch in VMtools version and Hardware version on any version of Esxi host. My Esxi version :5.5 build -3029837...
View ArticleHow to get the last name of the user using the virtual machine?
I have over1500 VM in14hosts.I needfor each virtual machine, find the name ofthe last user touse thisvirtual machine (except foran emptyrecord andadministrators). my script $myCol = @()$ESXHosts =...
View Article