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

ovftool vSphere least privileges needed

I would like to create a role for an ovftool only user and would give this role the least possible privileges. Can anyone help with this? I did not find anything inside the documentation.Can anyone...

View Article


How to use OVF Tool inside Linux ESXi shell ?

Hello All, Can anybody please help me with the VMware OVF Tool command line utility ?It is supposed to allow you to import and export Virtual Machines containers (VMX files). How do we specify the path...

View Article


How to accomplish Get-VIevent from powercli via the API?

I am having trouble finding  the Get-VIEvent  equivalent in the vcenter   and vcenter server API.Am I missing something?Or is it not there, YET?

View Article

Image may be NSFW.
Clik here to view.

invoke a registry key for 32/64 bit OS

Hi I am trying to fetch a registry value for AV. The reg value of agentguid is in different locations for 32bit and 64bit OS.Here I want the information like if the OS is 64-bit write the reg value if...

View Article

Image may be NSFW.
Clik here to view.

Connect-VIServer : Invalid URI: The hostname could not be parsed.

Hello folks,I encountered error today on my code as shown error msg below, can someone help me on this pls?Am trying to connect to multiple vcenter servers assigned to $VIServer variable....

View Article


PowerCLI + Horizon + smartcard Authentication

In our production environment administrators need to use smart cards to authenticate.  I'm trying to automate some recomposes via a powercli script and can't figure out a way to get the script to...

View Article

How do I get Extensiondata.guest.disk.capacity to generate total disk...

Good afternoon;Have modified this script originally created by Lucd.   For the life of me I cannot figure out how to get a grand total in GB the disk capacity for each vm.  Any all input would be...

View Article

Add a new PV SCSI controller via API

I'm trying to add a new PV SCSI controller to a VM without having to power off the VM and use new-scsicontroller. I can't get my head around the correct items I need to provide to the spec using...

View Article


Image may be NSFW.
Clik here to view.

Invoke vmscript to get windows hotfix information on multiple versions

Hi I am trying to fetch windows hotfix installed status for multiple versions.Here the problem is the Hotfix number is not same to all the versions of windows. -Like (kb4056897 is for windows 2k8r2...

View Article


Image may be NSFW.
Clik here to view.

Error using Get-VIEvent cmdlet - Server 2016 / PS 5.1 / PowerCLI 6.5

Hi, On a Windows 2016 server running PowerShell 5.1, I get the following error when calling Get-VIEvent: get-vievent : 8/23/2017 5:15:07 PM Get-VIEvent Error in deserializing body of reply message for...

View Article

Specify datastore per disk on template clone

I have a template that I need to roll out multiple times through PowerCli.The template has three seperate virtual disks.I want the first disk to be on a DatastoreA and I want disks two and three to be...

View Article

Suspend multiple VMGuests at once

Hello all, I'm tasked with creating a script to invoke the suspension of over 50 VM's (all Win2012r2) in a very narrow timeframe (probably between 5-8 minutes) following a UPS event.hutfown Suspend...

View Article

Query vCenter to list VMs with virtualHW.scheduledUpgrade settings

Dear Community, We are in a situation where vMotion doesn't work with some of our VMs. This is related to: https://kb.vmware.com/s/article/2080107(vMotion of virtual machine fails with the error: The...

View Article


Retrieving Multiple Annotations in Script

We have previously had a script in place for some time that pulls our inventory plus a single annotation field. We run extracts weekly for sharing the state of our datacenter, but now we are adding...

View Article

How to specify memorySize in ovftool

I  am trying to   specify  the   memorySize  using  --memorySize:VMID=10*1024  in ovftool   but   it  always  defaults    to   OVA  defaults I tried   using   VCFC-2.3.0-jenkins-cl-4611 but   did   not...

View Article


Check if the Datastore is detached or not using LUNID

Whenever we perform EOW of storage array controller, we are performing datastore migration from OLD datastore to NEW datastore.After migraion, we are informing Storage team to reclaim those LUNs during...

View Article

Generate CSV with Datastore Space Info from multiple VCs and Clusters

I'm looking to create a script that outputs a table of our hundreds of datastores, showing all the datastores: capacity utilisation (%) space provisioned (%) The script needs to query multiple vCenters...

View Article


Add-PSSnapin : The Windows PowerShell snap-in 'VMWare.VimAutomation.Core' is...

I'm getting the following error: Add-PSSnapin : The Windows PowerShell snap-in 'VMWare.VimAutomation.Core' is not installed on this computer. PowerCLI Version:----------------   VMware PowerCLI 10.0.0...

View Article

'VMWare.VimAutomation.Core' is not installed on this computer

Is there a way to connect to the console of a shared VM over a SSH tunnel? I'm running Workstation 14 on Windows 10. If I create a SSH tunnel to a remote Linux machine running Workstation 14, I can...

View Article

change root password of all ESXi hosts in a cluster

Hi, I would like to change root password of all ESXi hosts in a cluster through CLI Please help

View Article
Browsing all 9071 articles
Browse latest View live


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