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

$esxcli.network.nic.list()

trying to get a list of my nic  $vmhosts = get-cluster "XXX" | get-vmhostforeach ($vmhost in $vmhosts) {$esxcli = get-esxcli -vmhost $vmhost$esxcli.network.nic.list() | select * }\how do I add the...

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

Image may be NSFW.
Clik here to view.

Get-Compliance Report for a List of ESX Hosts in 1 vCenter?

So i have a command that works below individually. I want this to work for a list of hosts. How can i do this?  $vCenter = "VCENTERNAMEHERE" # vCenter FQDN# Connect to vCenterConnect-VIServer -Server...

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

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

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


Image may be NSFW.
Clik here to view.

Updating when there are dependencies between VMs

Hello, I'm looking for a way to upgrade the hosts in a non-HA cluster where each host has a single VM and the VMs are dependent on the rest of the VMs in the cluster, such that only a single VM (i.e....

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

Guide for the script need to take clone on every day per schedule time

Hi All,Guide for me the script need to take the virtual machine clone on every day per schedule time. Conditions:1) Its need to be delete the previous day backup and name format it should be standard...

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

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

Script for Getting the Active alarm list in the VC

Hi All, can i get Script for Getting the Active alarm list in the vcenter ? Thanks,Sankar R

View Article


Get-scsilunpath with VMhost name on output

Dear All, I am still new to PowerCLI. My goal is to find death luns path in all the hosts.I can use this command  Get-VMHost  | Get-ScsiLun  | Get-scsilunpath | Where {$_.state -eq “Dead”}.This will...

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


Baffled, runs interactively, doesn't run in windows task scheduler (win 2012 r2)

baffled....The user executing the task has Logon as a Batch, is a local Administrator.   I'm using the latest download from  I run this interactively, it works.  I run in a windows task scheduler, zero...

View Article

SRM Reporting using PowerCLI

So, I'm back to this old Chesnutt of trying to get accurate SRM Reports using PowerCLI. I've the following setupProtection Group Name = MyTestPGProtection Group Protection Status in Web Client = Not...

View Article

Failed Import-vapp to dvswitch

Hello all!I'm trying to automate the import of virtual machines to inventory. But the error is issued when starting Import-Vapp command. Import-VApp -Source $ova -VMHost $vmhost -Datastore $ds...

View Article
Browsing all 9071 articles
Browse latest View live


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