Trouble filter out VMs to delete snapshots from.
Currently trying to make a script to delete all snapshots over 3 days old while referencing a txt file of VMs that are exceptions. What I have is hackish and poorly written, it should work I think,...
View ArticleERROR: New-Snapshot (Operation is not valid due to the current state of the...
Hello guys! I've been googlin around a bit, but cannot find a solution to my problem. Hopefully one of you skilled people can point me in the right direction:) I've created a powerCLI script to take a...
View Articletest cluster in powercli
Can the test cluster command in powercli adversely affect a VMware environment ? Does it make changes to Hosts/Configuration ? I want to run Test cluster in VMware environment where it test...
View ArticleMonitoring when one or more vms of a group of drs are added or removed.
Hi guys Is it possible with Powercli monitor and create an vm alarm when one or more of a group of drs are added or removed?
View ArticleNetwork Core Dump to Windows Server UNC?
Hey gang. I'm trying something quite 'off the reservation' as we PowerCLI users like to do from time to time. Recently, we encountered the Purple Screen of Death on one of our hosts. After 2 days of...
View ArticleDoes anyone know how to sign ova with timestamp?
I am creating ova file using VMware OVF tool .And I want to use public Code Signing Certificate like published by Globalsign or Verisign.But current OVF tool doucment is not introduce how to sign with...
View ArticlevSphere Data Protection PowerCLI ?
Hi People, I wonder if there is any vSphere Data Protection CLI to show the report of which VM is backed up by VDP or something like below: #Status of all services on the VDP appliance dpnctl status...
View ArticleBug in PowerCLI 6.5 R1: Could not load file or assembly log4net
Description I don't know where to report PowerCLI bugs ... btw Get-ErrorReport won't work for this bug. There is a problem with PowerCLI 6.5 R1. When starting the x64 PowerCLI all PowerCLI modules...
View ArticlePowerCLI to list all Powered Off VMs and Date of Event
I am trying to get this script to work but it doesn't even seem close at this point. I am looking to run a report on Powered Off VMs and information about them. I need to be able to clean the...
View Articleimport-vapp remotely
Hello, Can anyone please confirm if it's possible to use import-vapp remotely? My environment is vCenter 6.5 and I've tried different powercli versions, 6.3 and 6.5 I'm trying this: invoke-command...
View ArticleHow to get Datastore belongs to which compute cluster
Hi, I am trying to figure out how to get Datastore belongs to which compute cluster that fits in below script, please help me on this. Thank you in advance.if(-not (Get-PSSnapin...
View Articleportid's traffic shaping info in dvs
I want to get TrafficShapingInfo at portid's in dVS Refer to the followinghttp://davidstamen.com/powercli/using-powercli-to-get-and-set-dvs-traffic-shaping-settings/ I can get TrafficShapingInfo in...
View ArticlevCheck asking for credentials with vCenter Appliance
Hello, I am currently building a new environment using vSphere 6. I installed a vCenter Appliance 6. I want to use my good old daily vCheck from Alan Renouf (latest version available). When I run it...
View ArticleInvoke-VMScript The operation is not allowed in the current state.
Hi all I'm just trying to invoke-VMscript on a VM , PowerCLI - latest but using 32bit for invoke-vmscript vCenter 6.0 - 3018524 Invoke-VMScript -VM C365-bp-LP-x -ScriptText "C:\temp\script.bat"...
View ArticleHow to list ESX Host CDP info using new-VIProperty
I'm trying to use new-viproperty to extract ESX Host physical NIC port information. There is a lot of info on how to do it using get-view and queryHint but I'm trying to use VIProperty. I have built...
View ArticleSnapshot script for multiple snapshots? Example in post.
Hello, I'm hoping somebody can lend me a hand or give me some direction. There are a lot of snapshot monitoring scripts out there, we use a few of them in our environment. What I'm looking to do...
View ArticleDiscussion: Automation- Api's vs. PowerCLI
This is a topic I've been thinking a lot about lately as I've been reading blogs, listening to podcasts, talking to peers, etc. If we are talking about automation, strictly automation, does it matter...
View ArticleHow to find Orphaned VMDK files
How can we find out Orphaned VMDK files in all the Data-stores.
View Articlehow to get SAN boot details
Hi,We are migrating esxi 6.0 SAN boot lun from old vmax to vmax 3 i am trying to get a script to find boot LUN name and NAA id from all esxi servers in vcenter,how to get from powercli ? Thank you in...
View Articlevsan On disk format version
Hi, is it possible to fetch vsan on disk format version using powercli ?
View Article