Backup VMs with Copy-DatastoreItem
Hi I'm trying to write a script who backups the VMs of our helpdesk. They have some testmachines, who need only a basic backup. The Script:function backupvm($name, $destination) { $test = Test-Path...
View ArticleWaiting for tasks to complete
I am writing a PowerCLI script that includes taks thate take some time to complete.For example, my script includes a command to shutdown a VM, like: Get-VM $vm | Shutdown-VMGuest How can I ensure that...
View ArticleCisco Discovery Protocol
How easy would it be to get the below codes output to a spreadsheet. Ideally each column be the name of the ESXi Host and under those columns are the returned results.Get-VMHost | Where-Object...
View ArticleCould not complete network copy for file - Template deployment
Greetings, I've encountered what I believe to be a bug with New-VM -Template cmdlet and was wondering if anyone else could shed some light on this subject. I consistently get this network file copy...
View ArticleGetting the power state of a VM
I apologize for the very basic question.How can I get the power status of a VM?I made several tests but up to now I was unable to find the right syntax...Regardsmarius
View ArticleReconnect Host after non self signed certificate replaced
Hi we have changed the default self signed certs for internal generated ones. So we have gone from 10 year valid certs down to 2 years, hence having to manage certificate replacement...... So once the...
View ArticlevMotion TCP/IP Stack- Created by Powercli
Hi all, Has anyone successfully automated the creation of the vMotion TCP/IP Stack on each host and then the creation of the vMotion VMK utilizing the newly created stack. RegardsCliff
View ArticleLog into vCenter using certificate
I have a vMA running on my vSphere environment and want to execute esxcli (command-line interface) to get data from esxi host. Right now, I have to provide vCenter credentials (username and password...
View ArticleCluster and Resourcepool allocation report
Hello I required a help to get a report in html or csv for ESX/VMware pool inventory. I am trying to run on larger environment prefer using (get-view)Ideally, I'd like to see a report that lists the...
View ArticleView Connection and Security Server instalation via PowerCLI
I am trying to install VMware View Connection Server and a Pairing Security Server via PowerShell and PowerCLI . Silent Installation of the View Connection Standard and replica server works but I get...
View ArticlePowerCli - Host Profiles
Hi, I'll have a Host Profile created for a Cluster (with some nodes, three), and I'm trying to automatically fill the "answers" for the Cluster host Profiles instead of fill all network settings...
View ArticleFacing issue while adding modules
I upgraded the PowerShell 3.0 from 2.0 and installed PowerShell CLI from here: https://communities.vmware.com/community/vmtn/automationtools/powercli and following this url:...
View ArticleWaiting for a VM to be ready
In a PowerCLI script I force a powered off VM to power up.In a few seconds the PowerState property of the VM changes to "PoweredOn", but I have to wait a quite long time for the boot to complete, till...
View Articlevdf -h Powershell equivalent ?
Just asking if there is a cmdlet in powershell to give the same result as vdf -h. Any Help Much appriciated.
View ArticlePowerCLI Export DRS Rules Script help
Hi, I'm using this code to export DRS-Rules.1. The data is exporting fine (if the script is executed manually), but the console is still throwing the errors (screenshot below, also attached with this...
View ArticleExporting RVtools report in CSV from Power Cli automation script
Hi all, Can we Export the RV tools Report through Power Cli script. I could get the details from RV tools per VC , but i want to get details of RVtools report of multiple VCs in sheetfrom Power Cli...
View ArticleESXCLI returning {VMware.VimAutomation.ViCore.Impl.V1.EsxCli.EsxCliObjectImpl}
Hi Im trying to retrieve cache stats though powerCLI using Get-EsxCli, but its not returning all values.Is this a known problem ? PowerCLI version VMware-PowerCLI-6.5.0-4624819. ( 6.5.0.234 )OS...
View ArticleWhat is the Powercli command to find vsphere clients in powercli (is the a...
In Powercli I can find esxi Hosts, I can find virtual machines, Is there a powercli command to find vsphere client (only vsphere clients). one has to connect to viserver in order to access powercli....
View ArticleForce duplicate host name
There are occasion where the duplicate vms are created with the same host name. To prevent and avoid this, we need to create a duplicate vms. Is there any easy way to do this by PowerCli or vijava or...
View ArticleLooking for a script to get vpxa agent version
I am working with a customer that has a large number of hosts in several vCenter environments. In troubleshooting some issues due to a recent upgrade to VCenter 6.0 U3, I have a need to verify the...
View Article