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

How to delete a broken VM which is still in 'Powered On' state?

This one is really a headscratcher gang.  I have a VM which should have been removed from a vCenter long ago.  I was attempting to remove it the normal way, but it wasn't going anywhere; just giving an...

View Article


PowerCLI Export and Import

Dear Community, i want to export and import (after editing in excel) a csv file back to vCenter with PowerCLI.The following information should be exported all in one line so i can easy edit the...

View Article


Bug in PowerCLI 6.5R1 - HA settings break get-vm

I am currently running 6.5a (Build 4944578) with ESXi 6.0u2 hosts.  I updated the PowerCLI on my Windows 7 computer to 6.5R1. At that point in time all my scripts were working OK. I then made some...

View Article

Script to know how many VLAN access my ESXi have

Hi All,Not sure if any one came across such requirement. I am looking for a script which can show my esxi connected to how many active VLANs. Based on the NIC i should get the information on that NIC...

View Article

Image may be NSFW.
Clik here to view.

Report VMHost, VMNIC, DVS and CDP info

Hello, I tried to create a Report wir these Information:Clustername, Hostname, VMNIC, PCI, DVS, CDP_Port, CDP_Device, CDP_Address    Thats the actual script with a modified version of LucD `s Get-CDP...

View Article


Image may be NSFW.
Clik here to view.

vSphere Replication monitor with PowerCLI

Hey folks, I'm looking to check, with PowerCLI, the VM status in incoming/outgoing replications (web client view: vCenter Server > Monitor > vSphere Replication)Any help out there would be very...

View Article

VMware Powercli Get-Credentials / Secure String /Connect vi server related issue

Hello VMware Powercli Experts, I have a requirement to make sure the password for connect-viserver is secured via '-AsSecureString' or 'Get-Credential'. I have listed the below 3 cases. Please let me...

View Article

Persistent disk management

Hi Expert I want to manage persistent disk using view powerCLI. I can find get-profiledisk commandlet, but remote-profiledisk did't found. Could you tell me how to manage persistent disk? Hiro

View Article


Need to find VMs Moved off host prior to being put in Maintenance Mode

I need to find what VMs were on a host prior to putting into maintenance mode.   I had an issue and want to know if it is related to a particular VM. I figured using Get-VIevent to search the logs and...

View Article


Properly load PowerCLI SnapIn or Module

  Hello,  With the new PowerCLI Version I need to write a new loading section for my Scripts. The loading part should work with all PowerCLI Versions. #region: Load VMware Snapin or Module (if not...

View Article

Importing vSphere tags from CSV gets incorrectly applied if some values in...

Hi all, vCenter 6.0 and 6.5,PowerCli 6.5 r1 I need to import vSphere Tags from a csv into my vCenter and apply this to relevant VM's. Not all VM's should have tags assigned, some should have all tags....

View Article

Help with Host Profiles and PowerCLI needed

Hello, I have 2 questions on using PowerCLI to edit vSphere Host Profiles: 1) How can I clone a host profile, by using PowerCLI ? 2) How can I modify Host profiles, by using PowerCLI, to update these...

View Article

Edit Host Profile to add a VM Port Group and LUN as datastore

Can anybody to help to create POWERCLI script to add a port group with vlan id to a host profile(with out reference host) and add a Lun as a datastore. Portgroup adding to a standard switch not to DVS...

View Article


How to Change a CDDrive to use a SATA Controller

I have figured out how to ADD a SATA Controller in PowerCLI, but I can't figure out how to change a CDDrive to use it.When you add a CDDrive with New-CDDrive, it by default attaches it to IDE(0:0). I...

View Article

How to assign an AD Group to an existing role in vSphere

I've tried several sites, several books and even Google, but I can't find the answer for something basically simple.  I've created a script which opens all my vCenters simultaneously.  Now I want to...

View Article


HostProfile Policy Details

How can we get Policy ID and PolicyOption from the HostProfile.Can we Use queryPolicyMetadata Do we have any examples to get the details of 'PortgroupCreatePolicy' Thanks,Stanly.

View Article

Image may be NSFW.
Clik here to view.

Move-VM with a Datastore Cluster

Hi All, I'm attempting to script the mass movement of VMs to new datastores that will be part of a datastore cluster.  When I Google this it seems I should be able to specify a datastore cluster object...

View Article


Image may be NSFW.
Clik here to view.

Multiple VMs Inventory using multitasking process ?

Hello, I was trying for long to make a script to fetch multiple VMs information from VC(s).I got success to build a script with desired format and properties BUT this will go one my one ForEach ($vm...

View Article

Image may be NSFW.
Clik here to view.

Activation of replication services on vmkernel port through Powercli

Hello all I'm trying to automate the activation of services "vSphere replicaton traffic" and "vSphere Replication NFC traffic" on a vmkernel port and I can't find anywhere the option to do it in...

View Article

Is RVTOOL certified by VMWARE?

HI all,is the RVTools  offcialy certified and/or recommended by VMWARE? Best regards, Rudolf Klein

View Article
Browsing all 9071 articles
Browse latest View live