Export list of VMs with complete folder path
Hi all, I´m not a scripter so I need your help for my environemnt - 1 vcenter 5 datacenters without templates.I need an export in csv contains the BlueFolderPath, I found a lot of scripts using...
View ArticleGet many Information about the virtual Machine Hardware (PS-Newbie wan't to...
Hey there ,Introductioni don't have many Experience with Powershell but want to learn it cause it is a great tool to get many Informations about VMs with the PowerCLI. ToDo:I want to create a...
View ArticleNeed Help to automate Poweroff, SVMotion (and VMotion), Upgrade VM Hardware...
Hi there, I'm trying to build a powercli script to perform the following actions: Poweroff a list of VMs VMotion to the new hostsUpgrade VM Hardware and tick the VMware Tools upgrade at next power...
View Articlevmware powershell
I have this query that I want to send out an email for anything that is used at a certain percentage. I want to add Free Space as well as % for Used space and then alert on the % of used space that is...
View Articledatatore VM report
how can I get a report on what vms are on what datastores ? I have this working but the format is not what I am looking for Get-Content .\luns.txt | % { Get-vm -Datastore $_ | select name,...
View ArticleAutomated VM-provisioning without access to vCenter
I am trying to create a Power-CLI script to allocate a variable number of hosts to different subnets on an ESXi host (for example: 5 XP boxes on network A, 5 Ubuntu boxes on network B, a few Win2k12...
View Articleimport-vapp remotely
Hello, Can anyone please confirm if it's possible to use import-vapp remotely? My environment is vCenter 6.5 and I've tried different powercli versions, 6.3 and 6.5 I'm trying this: invoke-command...
View ArticlePowerCLi
Guys, Any help would be appreciated.... I have a SATA Controller and I am trying to add HD's via powercli, keep asking for SCSI controller type. The option I see for -controller is not "SATA...
View ArticleScript RVtools
Bonjour a tous, Je recherche actuellement du monde qui pourrais m'aider à créer un script me permettant d'exporter toutes les informations vmware de mes VM ( via rvtools) selon une liste de VM que...
View ArticleESX ping with powercli
Hi Experts, I run this code and it didn't return any error: $esxcli2 = Get-ESXCLI -VMHost host01.lab.com -V2$arguments = $esxcli2.network.diag.ping.CreateArgs()$arguments.host =...
View ArticleUnable to connect to the remote server after certificate upgrade
Hi All,I have multiple vcd cells behind a load balancer. We just updated the certs (custom), but now they are updated, I can no longer access the vip or individual cells through connect-ciserver. I...
View ArticleValidate Credentials before connecting to vCenter/ESXiHost
Hi, I'm trying this to connect to vCenter, however would like to validate the $creds first before even executing the below try/catch.Would like to validate $creds, if the credentials are incorrectly...
View ArticleUpgrade VM os
Hello, there is a VM created from template based on say RHEL 5.0. Now the VM needs to be upgraded with RHEL 6.0 using another template. Is it possible to ugrade using PowerCLI or vijava? Please let me...
View ArticleEVC Compatability between e5-2600 v0 and e5-2600v3
Hi All, We are live migrating VMs from one Cluster to another standalone hosts . We are having issues with cpu compatibility . Legacy hosts have e5 2600 v0 processor and new hosts has e5 2600 v3 ,...
View ArticlexVC vMotion using RelocateVM_Task and same datastore
Backstory: I have two discrete vCenter servers, we'll call them vcA and vcB. I setup a third server, vcC, in the same SSO domain as vcA now with linked mode! I would like to migrate guests from vcB...
View ArticleGet-ContentLibraryItem doesn't work
Hello, I just installed PowerCLI 6.3 Release 1, in order to get 'Get-ContentLibraryItem' cmdlet available.After launching the console, and connect to a vCenter, I run 'Get-ContentLibraryItem' command...
View ArticleHow to make this powercli Script that i created to run faster than now?
Hello VMware and Powershell Experts, I have created the below powercli script to collect inventory of our 5.5 and 6.0 VMware Hosts, VMs and Clusters. The problem with it is, it is terribly slow. It...
View ArticleVM creation date and who has created
Hi Everyone, I have VM which is idle in the inventory since long, now would like to know when it was created and who has created. From Tasks and Events couldn't get it. And in our inventory most of the...
View ArticleForce to use specyfic vMotion adapter (mix 10gb and 1gb)
Hello, i have 2 physical NIC for vmotion, First is 10GB the second is 1GB. I dont want to put them together in 1 vSwitch in active/standby or active/unused because there is the well known issue (only...
View ArticleVMware PowerCLI script Error. Urgent help needed!
Hello VSphere Powercli Experts, Can some one please tell me why ESX hosts from vcenter1 is appearing on all 4 vcenters in the output? Thanks a lot in advance! $Username = Read-Host -Prompt "Please...
View Article