Change VM Name and harddisk path directory and vmdk to reflect new VM name
Hello Experts, I'm in the process of preparing a script to change some VMs names. I prepared the script and applied it on PowerCli to change VM names on the fly (VMs were powered on). However, when i...
View ArticleVcenter Alarms - what property?
Hi, Vcenter alerts are present in the GUI, but I don't know how to obtain them from CLI. Anyone know the property / connection?I'm writing an advanced function to query for the Alarms depicted in the...
View ArticleElectricistas Baratos Barcelona
Los electricistas Barcelona localizamos con rapidez y solucionamos todo tipo de fallos en el sistema eléctrico, como pueden ser apagones o cortocircuitos. Reparamos con rapidez cualquier problema en...
View ArticlePowershell Array
Hi Luc,Need your help in redcuing the script run time. I've created the below script to combine powernsx and powercli to get the report that i wanted, But it is taking hours to complete the report. Can...
View ArticleTag multiple VM's
Hi,I'm trying to tag multiple VM's in a large environment (thousands).I'm hoping that I can read the contents of a csv and use PowerCLI to do the Tagging cvs format would...
View ArticleGet-VMHostNetworkAdapter not working on some hosts
hi,i have a script that use the Get-VMHostNetworkAdapter cmdlet.it runs on several esxi server (5.5u3) but other fail with the following error: Get-VMHostNetworkAdapter : 03/08/2017...
View ArticlePowerCLI script to create a clone with some conditions
Hello All, Can any one suggest me a script that should possible with below conditions. 1) Need create clone for every day 2 PM EST and that clone should be automatically deleted after 7 days. 2) Clone...
View ArticleScript to export Network and VLAN info in Datacenter
Hello all, Im looking for a script to export all network and vlan info across multiple clusters in one datacenter. This would only be the Network info and none of the hardware info. I will use this to...
View Articleneed to get sum of all hard didks
how do I modify this to get the total sum of all vmdk/VM?
View ArticleOutput vCenter SSO Password Policy
I need to do several monthly checks on my vCenters for permissions and Policies. I have found a command that will output permissions for me but I am struggling to find a command that will output the...
View ArticleNIC/VMTool/Hardware Detail Along With OS Version
please help me with the script to put the required info.Run the below command but couldn't't join the OS version with NIC Version. $vms=Get-View -ViewType VirtualMachine $(foreach($vm in...
View ArticleAD group rename has to be applied in vCenter permission
Hello All,Have an AD group called Test. With that group name in vCenter at Datacenter, folders, cluster and datastore permissions are provided.Lets say now AD team is renaming the Test group name to...
View ArticleMultiple Virtual Network Adapters on VM - How to Map to Corresponding Windows...
Hi All, (ESXi 6.0. standlone)I have a Windows Server 2012 VM that Im trying to setup via script. This VM has 4 Network Adapters: VM Network, Something0, Something1, Application. The OVA is deployed and...
View ArticlePowerCLI 6.5.x - Import-Module when executed via an C# and ASP.net fails with...
So this one is interesting... I have a self-service portal which I built for users to pull metrics from vRops, It runs on W2K12, C# / ASP.net and executes a PowerShell script which goes off and talks...
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 ArticlePowerCli .NET and Connection status
Dear,i'm using VMWare.Vim library for .NET application, to inspect my hypervisor. Usually i start a request with Connect() method,querying items and Disconnect(), and all works. I would like to avoid...
View ArticlePercentage memory and cpu used
Hello,I have this script where I can get some info from each VM,I would like to add: CPU assigned/used Memory assigned/used Get-VM |select...
View ArticleExport and import the Vcenter roles and permission other VC
Hi All, Can i get script for export and import the Vcenter roles and permission other VC ? Thanks,sankar
View ArticleAdd disk on a specific virtual device node while the VM is online
Hi all, Is it possible to add a new vHDD on a specific virtual device node e.g. (0:z) while the VM is online?When creating a new disk with "New-HardDisk" I have no parameter for that. The disk is just...
View ArticleNo snap-in is registered for Windows PowerShell version 5
I have a PC running Windows 10 and I use PowerShell v.5 to connect to a vSphere 5.5 infrastructure.When I start a PowerShell script that attempts to execute the Add-PSSnapin VMware.VimAutomation.Core...
View Article