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

HYPE TEST!

Are you ready for the PowerCLI Beta?

View Article


Image may be NSFW.
Clik here to view.

Get Number of VM CPU and Cores

Hi I've tried the following but cannot get the number of VM CPU and Cores. What am I doing wrong?    

View Article


Setting svga.vramSize with New-AdvancedSetting

HiI got a problem setting the vram size of the video Card. I'm using PowerCLI 6.5 lattest release. If i type "New-AdvancedSetting -Entity $vm -Name svga.vramSize -Value 32768000 -confirm:$false"...

View Article

-Finish parameter in Get-Stat (not getting any output)

I am trying to get historical data for VMs from ESXi using PowerCLI. When I use the following cmdlet: Get-Stat -Entity IPMVMCloudVM -stat cpu.usage.average -Start (Get-Date).AddDays(-25) -Finish...

View Article

Report Generation of VMs

Hi All, Currently we are trying to generating report on VMs allocation with respect to Teams. Each VM will be having a custom attribute as Team and corresponding team name is entered. In below example...

View Article


PowerCLI: Enable / Disable Alarm Actions on Hosts / Clusters

Hello All, I have done some serious googling, and am about to accept that it is not possible through PowerCLI.But I wanted to make a last effort by asking you guys. For ESXi host maintenance, I want to...

View Article

Edit Alarm Action E-mail Recipients

I was wondering if anybody had a script for PowerCLI/vCenter 5.5 to mass edit the e-mail recipients under "Configuration" for 'Send a notification email' under Alarm->Actions in vCenter.I looked...

View Article

VMware-PowerCLI-6.5.0-4624819 returning partial results

We recently migrated from 5.5 to 6.5; I can access the Web and HTML5 clients and see all my 10 clusters, hosts, VMs etc. I have however just tried to run a script and noticed that via PowerCLI I see...

View Article


PowerCLI 6.5 problems

Hi all,  After much agonizing, I decided to do a PowerCLI upgrade to 6.5 with the fancy new install-module install  Modules install just fine, but connecting to the vCenter, however, does not work. It...

View Article


Scheduled maintenance mode script with email status report

Hello Guys, I need your help, i need a powercli script to put some esxi host in maintenance mode at a specifique Date/Hour.  Don't know if we can do it with powercli or if i need to use the windows...

View Article

Change scsi controller to ide controller

Hi guys,  I'm such a newbie in powershell as in powercli :-)  I need to change the "scsi controller 0" to "ide controller 0" of the first disk....  any ideas to perform this magical move  ? i only...

View Article

Get List of VMs, Datastores and Folder name per Cluster

Hello!!  I'm hoping someone can assist me with a PowerCLI script that can pull the subject info into a txt or csv file.  In an effort to get our environment cleaned up before our next DR exercise with...

View Article

PowerCLI Script to pull out vCenter Cluster Configuration

Hi, I had been lot of documents/posts/blogs but I am still unable to find correct script to pull out cluster configuration. My infra has vCenter 6.5 hosting ESXi 6.5. All I want is inventory of what...

View Article


Is it possible to extract LunID's from datastore?

Recently I get a task to define which datastores (in our virtual environment) have  StorageIOControl option enabled. For example: datastores with replication should have this option enabled and...

View Article

VM Snapshot with Power shell cli

Hello All  I do not have much knowledge of Powershell but I'm trying to create a snapshot in vcloud.link-connect.com with below script but I'm getting an error as term "Connect-CIServer is not...

View Article


Imported json - how do I specify a dup object name

I was able to pull in a json with invoke-webrequest.When I look at $x.y.z.ipaddress, it displays two values.  one is our public and one backup.  How can I assign the public IP to $PubIP  There is an...

View Article

Issues with DeployRule cmdlets - Not authenticated.

Hi All, I'm trying to automate Auto Deploy Rules using Powershell. All the PowerCLI cmdlets are there to perform the tasks that I need and the script works perfectly but only the first time, If i run...

View Article


Select-Object output to a variable

Hello, anytime I fill a variable with the output of a calculated property and then I use that variable later on in a script, instead of simply getting the value of the variable I also get @{} around...

View Article

Image may be NSFW.
Clik here to view.

using Vsphere Script or powerCLI is there a simple way to keep current Esxi...

First, to be clear the reason i'm putting this here as i know this will keep happening in future with vmware future releases. there's plenty of blogs with their workarounds which are either temporary...

View Article

Fetch few details of a Virtual Machine with PowerCLI

Hello everyone,I need to fetch few information from virtual machines with powerCLI like: Load average of VMTop Processes of VMEstablished Connections of VM using Get-EsxCli and Get-EsxTop I can get...

View Article
Browsing all 16717 articles
Browse latest View live


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