Configured Alarms list per VC, DC, Cluster, Host, VM Level
Hi All, i am looking for an option to get the "Configured Alarms list per VC, DC, Cluster, Host, VM Level" with the powercli script.,and another script which is to pull all the triggered script in the...
View ArticleWhich event/task categories can I use for user prompted action audit?
Which event and or task types should I filter for, If I want to get only the user prompted changes, poweron/off, additions, deletions, reconfigurations etc of host, vm, datastore etc, where something...
View ArticlePowercli help
Hi I have following powercli script to gather vcenter info. I need to add to get a list of hostnames, cluster name, folder name and VM name in it. Can someone help:$hostinfo = @() ForEach...
View ArticleCan PowerCLI interact with the installation of any GNU/Linux?
Hi foks! I have the script to create new VM (get-new) until launching the VM and the installation DVD (ISO).But i have no idea if PowerCLI, during the SLES12 installation process, can configure "Boot...
View ArticleNew-VM from Template
Hey all, It's been a while but I'm running into something I'd like another set of eyes on. I'm running the below script and it executes fine and does what I want but it spits out a lot of errors in...
View ArticleAnswer types
What do you expect from an answer to your question(s) ? Should it be code that a beginner understands or code that provides the fastest solution in a large vSphere environment ?
View ArticleVMware Tools will not report more than 64 IPs per interface
I have some guests with several hundred IPs assigned to a single interface, and I'm trying to query IP assignments through PowerCLI. I've found that PowerCLI, the vSphere UI and pyvmomi all return at...
View ArticleFind folders on datastore containing a single file
We are being impacted by Rebalance operation leaves VM folders in previous datastores (2108928) in our Horizon environment and have a case open with VMware as it's making a mess of our datastores....
View ArticleScript for Move vm from one folder to other folder
I am looking Script for moving VM from one folder to other folder even Duplicated folder name exist on VC .The below script works fine in Unique folder structure. $VMfolder = @()$VMfolder =...
View ArticleMissing properties in "VMware.Vim.VirtualMachineConfigSpec" when creating a...
When running command 'New-Object -TypeName VMware.Vim.VirtualMachineConfigSpec', not all of the expected properties are returned.When I run this command on one workstation, 48 members are returned. In...
View ArticlePowerCLI for changing Update Manager Settings
We're trying to create some handy PowerCLI automation scripts for setting up new vCenter servers, and after moving to vCenter 6.5 where the Update Manager is embedded we want to write a script for the...
View ArticleTrying to install PowerCLI 10 on Windows 7 and failing ... please help!
Hi all, I need your help. I'm trying to install PowerCLI 10 on Windows 7 and failing, repeatedly. No matter what I do, I always end-up with a 6.5.* version: After running my script (below), I'm still...
View Articlepowercli 10 connect-viserver error method not found
Hello, I am having a bit of a challenge getting PowerCLI 10 to connect to my vCenter server (VCSA 6.0 U3). When I run the Connect-VIServer command I get the following error: Connect-VIServer : Method...
View ArticleCommand to get license key information of a host
Hi, I would like to fetch the license key of a single host Am able to fetch list of license keys assigned in a vcenter, but unable to fetch host wise. My requirement is , i will be connecting to...
View ArticleUnable to Invoke-VMScript in RHEL 6/7
Hi,I am trying to use to Invoke-VMScript to run some commands inside of RHEL 6/7 guests, but I receive this error:invoke-vmscript : 5/21/2018 9:10:42 PM Invoke-VMScript Error occured while...
View ArticleCluster cpu info
Hello, I have this script where I can get some CPU/Memory info: Get-VMHost -Name tec-vm-ki* , tec-vm-* | Select Name, @{N='CPU GHz Capacity';E={[math]::Round($_.CpuTotalMhz/1000,2)}}, @{N='CPU...
View ArticleSet VM Restart Priority
Hello. Im somewhat new to PowerCLI. Im looking for a way to set the VM restart priority for 1000+ machines (spread across multiple clusters and vCenters). The priority is based on the first two...
View ArticleRemoving a Port Group?
Hi, I saw the discussion about the AddPortGroup function for adding port groups to a virtual switch, but haven't seen anything about removing a port group from a virtual switch. Is there any way of...
View ArticleExport all VLANs and Portgroups from dVS
I'm trying to get an cvs with a list with of all Portgroups and their VLANs from a dVS. IS that possible? I've found some scripts but they take the hosts and that results in an endless long list.
View Article