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

Image may be NSFW.
Clik here to view.

Modifying script to automate Standard vSwitch VM Port Group setting creation ?

People, I'm deploying multiple ESXi servers which needs to have access to lots of VLAN, hence I need to create about 10-15 VLANs as VM Port Group (Network Label) in one single ESXi host and as standard...

View Article


Image may be NSFW.
Clik here to view.

vcsa 6.5 trying to automate the backup - authentication failure

Hello  I tried to make the Backup-VCSAToFile work in my development environment. vSphere 6.5 – Automate VCSA Backup » Brian Graf's Virtualization Blog I'm stuck here:A server error occurred:...

View Article


Image may be NSFW.
Clik here to view.

Get-Datastore inconsistently returns RemoteHost for NFS datastores

When we run the following: Get-Datastore | Where-Object { $_.Type -eq "NFS" } | Select Name,RemoteHost We're only getting data in the RemoteHost property for some of our datastores.  We're only seeing...

View Article

Copy-VMGuestFile to retrieve a folder and contents from a VM

Anyone had any luck with this?  I'm getting "Copy-VMGuestFile : 12/8/2016 9:39:41 AM    Copy-VMGuestFile        The object C:\test\myfolder\ is not a file.    " Is this even supported?  I can copy a...

View Article

Remove Passthrough Device

I am trying to run the following command to remove PCI devices  Get-passthroughdevice -vm vmname | remove-passthrough device. While running the command, I receive unable to cast object type...

View Article


Get LUNs Capacity, Provisioned, Used Space & Percent Free

Hi guys Below scripts is from Ping4 which I frequently used.Please help to modify & tweak, so I can extract disk size Provisioned, Used Space & Percent Free.Currently, I can extract all storage...

View Article

Image may be NSFW.
Clik here to view.

Need help writing a PowerCLI script -- to run under vRealize Automation 7.0...

Hi all, We're using vRealize Automation 7.0 I need help writing a PowerCLI script -- to run under vRealize Automation 7.0 -- that automatically runs, reads a Windows license key from...

View Article

Host maintenance

If we put he host into maintenance mode, can the VMs migrate to other host.DRS is not enabled

View Article


VM Hot-Add, Hot-Plug List

Hi community, Can anyone provide me with a PowerCLI script which will identify Guest VMs within vCenter which have Hot-Add, Hot-Plug enabled?  We've recently migrated a group of Linux VMs (RHEL 6) into...

View Article


vmupgradehelper.bat /s and /r don't work

We have a bunch of machines using E1000 vNIC and we need to upgrade them to vmxnet3. I deployed two test VMs and attempted to use VMupgradehelper.bat /s to save the network settings then shut down and...

View Article

Image may be NSFW.
Clik here to view.

vROps - Total Transactions Per Second

Is it possible to use PowerCLI to get a list of all virtual machines in a given vCenter from vROps, then calculate the average IOPs (called "transactions per second" in vROps) for all VMs over a 2 day...

View Article

Export vCenter roles (privileges) to excel or csv

I'm looking for some script or any other workaround to export all vCenter roles to excel or csv,lets say it might be for audit purpose. Kindly let me in this regards, Thanks in advance. Rachis

View Article

export roles from one vcenter and import to another

I got 6 vcrnters that I need to create the same role how do I export the rtole from one vcenter and import into another?

View Article


Get-VMHostStartPolicy Index was outside the bounds of the array.

Hi All, I'm trying to set VMHostStartPolicy on all ESX in my Vcenter. In each vCenter around 900+ hosts are there and similar 4 are there. So I have to very depend on the script.Below is the script I'm...

View Article

PowerCLI Script Attempting to Read Blank Cells during Import-CSV

I am using a PowerCLI script to automate the creation of VMs based on data found in a CSV file and found during testing that the script continues to read through the rows of the CSV even if there is no...

View Article


Add vROps data to VM objects

I've got an existing report that gets a list of VMs from a CSV and complies information on the virtual machine objects from vCenter with a Get-vm. What I would like to do add a few statistics from...

View Article

Numa.LocalityWeightActionAffinity

Hi everyone, I am trying to change ESXi host advanced system settings numa.LocalityWeightActionAffinity parameter to set 0 Default value is 130 Do you have any script that completes this task by...

View Article


List total size of all vmdks on a VM in GB

What is the best way to list the total size of all vmdk's attached to a VM in GB?  (If the vm has rdms (either virtual or physical mode rdms) I need to include those RDMS in the total)thanks!

View Article

How to change VM NIC to VMXNET3 without replacing MAC Address?

Hi  Any procedure/powercli to change VMNIC adapter to VMXNET3 without replacing MAC address?

View Article

[PowerCLI 6.5] How to use StartProgramInGuest in C#

Hi all,     I search the all examples from Java and C# about this function usage. However, I always get the exception   "The object 'vim.vm.guest.ProcessManager:guestOperationsProcessManager' has...

View Article
Browsing all 9071 articles
Browse latest View live


Latest Images