Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Browsing all 16717 articles
Browse latest View live

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 Article


Which 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 Article


Powercli 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 Article

Image may be NSFW.
Clik here to view.

Can 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 Article

New-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 Article


Image may be NSFW.
Clik here to view.

script running slow

any idea how I can speed this up. Its running very slow 

View Article

Answer 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 Article

VMware 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 Article


Image may be NSFW.
Clik here to view.

Find 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 Article


Image may be NSFW.
Clik here to view.

Script 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 Article

Image may be NSFW.
Clik here to view.

Missing 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 Article

PowerCLI 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 Article

Trying 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 Article


powercli 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 Article

Command 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 Article


Unable 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 Article

Cluster 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 Article


Set 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 Article

Image may be NSFW.
Clik here to view.

Removing 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 Article

Export 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
Browsing all 16717 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>