Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Browsing all 9071 articles
Browse latest View live

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 Article


Vcenter 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 Article


Electricistas 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 Article

Powershell 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 Article

Tag 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 Article


Get-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 Article

PowerCLI 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 Article

Script 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 Article


Image may be NSFW.
Clik here to view.

need to get sum of all hard didks

how do I modify this to get the total sum of all vmdk/VM? 

View Article


Output 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 Article

NIC/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 Article

AD 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 Article

Multiple 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 Article


PowerCLI 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 Article

VMware 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 Article


PowerCli .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 Article

Percentage 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 Article


Export 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 Article

Add 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 Article

No 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
Browsing all 9071 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>