powercli: listing only linux vms with VMtools need update
Hello all Looking for a script that can list "only" the linux VMs which need VMtools to be updated Idea is to automated email to linux admins whenever VMtools need to be updated Thank You
View ArticleExport multiple items of information to a single CSV file
Hi guys, I'm trying to export information to a .csv file. In the end I want the following information in the CSV with the following headers:Name,NumCpu,MemoryMB,Description,NetworkNameI can get all...
View ArticleHow to allow selected domain users to login to VMA??
hi guys, Anyone aware of any method to allow restrictive access to VMA? If I want to allow specific set of AD users to be able to login to VMA how can it be acheived? I believe creating AD security...
View ArticlePowercli interface / tools
Above is what i use... can we get any better tool for the interface... light & handy one... Eg for putty.exe we use mRemoteNG
View ArticleHow to open vm-console through api in C#
Hi, Is it possible to open vm console through api ?In powercli , we use Open-VMConsoleWindow to perform this task.Is there a method in api through which the open vm console can be done ?please suggest...
View Articleget-vm toolsstatus and powerstate
how do I get vm tools status and the powerstate together? get-cluster "mycluster" | get-vm | % { get-view $_.id } | select Name, @{ Name="ToolsVersion"; Expression={$_.config.tools.toolsVersion}},@{...
View ArticleScript to migrate cluster from one vCenter to another vCenter
Attached is a script I use to migrate an ESXi cluster from one vCenter to another. I'll be updating the script (will add VM folder locations and attributes, more qa, root credential storage - PASSWORD...
View Articleupdate vmware tools check powerstate vm first
I need to update vmware tools on a bunch of vms from a txt file. But I also need to check the powerstate of the vm and then power them on before the update. So trying to work with something like this...
View ArticleHelp with formatting on objects
I have a script that I modified from an Alan Renouf script (Thanks for posting the script), but I'm having an issue with the output. The script is getting some details on a VMs hard disk, and here is...
View ArticlePowerCLI to export host profiles from 5.5 Update 2
Hello, We have ESXI 5.5 Update 2 with standard license. I am manually applying the STIGs and we have about 10 hosts thus buying the Enterprise plus license can't be justified to use host profiles. Is...
View ArticleHelp with a script used to gather information in vSphere. (Errors)
So because of the awesome help by Luc D, I was able to obtain a script that would gather some information that I needed for a report to my boss (I am an intern). Not knowing much of powershell, I am...
View ArticleHow to create Content Library from PowerCLI ?
Hello,My Name is Fred and I have a Content Library problem... I have been looking around for the set of functions in PowerCLI to perform some tasks on VMWare new feature called Content...
View Articleinventory vm harddisk
Hello I'm going crazy nowI'm trying to get some inventory from vm:s but I'm stuck at the harddisk result. I'm leaving some part out that works.... $vmname = Read-Host "Enter name of vm" $vmresult =...
View ArticleVMware vSphere PowerCLI 6.0 Release 1 build 2548067 - Get-PowerCLIVersion fails
Just installed the 6.0 version of powercli If I launch PowerCLI as administator (i.e. elevated permissions) all is fine (x64 and x32) If I launch PowerCLI as default user (i.e. Not elevated...
View ArticleHow can i loop until VApp is cloning
Hi AllThe following code I copy a vApp successfully Param([Parameter(Mandatory=$true)][string]$UserName, [Parameter(Mandatory=$true)][string]$MasterImage,...
View ArticleHow to find when I have add a new hdd to an existing vm??
I have one doubt. Suppose a scenario like I have added an extra hdd to a vm 2 months before. Now I want to know when I have added and the capacity of the added hdd , I have pulled the events from 3...
View ArticlevCheck asking for credentials with vCenter Appliance
Hello, I am currently building a new environment using vSphere 6. I installed a vCenter Appliance 6. I want to use my good old daily vCheck from Alan Renouf (latest version available). When I run it...
View ArticleOutput VM directory, filenames and sizes
Hi, I am trying to get a listing of all Virtual Machine directories and the file names and the file sizes.I have found scripts that would list the machine names and disks (i.e. C, D) of the guest but...
View ArticleScript to get Cluster wise CPU and Memory Suage
Hi All,Not sure if already such script exists, I am looking for the script where i can get Cluster wise CPU and Memory usage (available CPU and Memory if possible) report in excel or html. These is...
View ArticleLoop through CSV file
Hi, I have 5 VMs within a folder in vCenter which I would like to make some changes to. I have these VMs stored in an array called $vms. I also have a CSV file stored in $csvImport which is in the...
View Article