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

Trouble passing a function to be executed with Invoke-VMScript

I have the below function that I need to run on the remote VM through Invoke-VMScript with "remove-profile -days 0 - -computername localhost -profiles $profilename" this script removes a local profile,...

View Article


add-vmhost issue

Hi All I am testing out VMWare PowerCli 5.5 release 1.  I have a lab with the following: 1 x VCenter Server Appliance 5.53 x ESX 5.5 hosts I am trying to add the ESX hosts to VCenter with PowerCli. I...

View Article


vmware guests CPU and CPU cores

Hi,  I am looking around a bit and I know that for the physical esx hosts you can get information about the cpu and cores.When I check the same for vmware guests I get only the cpu info. For licensinng...

View Article

Requirements for Using PowerCLI and vCO

As per this article: vCO PowerShell plug-in | VMware vCenter Orchestrator Blog - VMware Blogs I understand that I need to have a local Windows user account on the powershell host that will be used to...

View Article

The true, clean, easiest way to automate the running of vCheck ?

I have posted on this before, but I still don't really have a clean solution for automating the running of vCheck. vCheck is a great report everyone agrees.When I run it and walk through choosing all...

View Article


Image may be NSFW.
Clik here to view.

Problem adding ESXi Free host to AD domain

I pre-create the computer object in active directory. I then log into the 5.5 ESXi free edition host using the .net client, from there I can successfully join the host to my domain.  But trying to do...

View Article

Choosing Performance Metrics for getstat2

I'd like to use getstat2 to get some storage performance statistics and save time over getstat.  I had a few questeions: If I want to see total IOPs on 5.1 for a group of VMs, (not just read or write...

View Article

Image may be NSFW.
Clik here to view.

Extract alarm from VCenter via PowerCLI

Good day!  I have a script that collects alarms from VCenter and notify me by email. He collects the alarm from VM,hosts, datacenters with clusters etc. But I got the alarm at the VCenter. I can not...

View Article


PowerCLI Script to add disk fails after upgrading to vSphere 5.5 U1 and...

Hi All, I've created the following script to add a disk to a VM in multi-writer mode for Oracle RAC. This script used to work on vSphere 5.5 GA and PowerCLI 5.5 GA, but now no longer works with vSphere...

View Article


Image may be NSFW.
Clik here to view.

Get Guestos trough Powercli

Hi all, I wrote below script to get all Vm's in my Vcenters that don't have vmware tools installed. i am trying to include the vm's / guests operating system into the csv output as well and can't seem...

View Article

powercli script to get targets devices paths from HBA

I need to quickly check all the hosts in my clusters to see all of them have the correct number of HBA targets, devices and paths. I can see this information in vCenter. Not an easy task if you have...

View Article

Compliance Hardening

Hi, I'm trying to use PowerCLI to harden our VM's for compliance. The VM's that need to be hardened are in a csv file. I tried the following command: Import-CSV c:\temp\test.csv | New-AdvancedSetting...

View Article

Check-MultipathInfo.ps1

View Article


Get Runtime, Lun Information from datastore

LucDI've modified your script to bring me a bit more information... but still can't bring everything.I'm having problem in a cluster and not all datastores are being viewed by the hosts. In really, i...

View Article

VM Security Hardening

Hey yall, I have to script for configuring the vm's for compliance.  The problem I am having is trying to do some checks to see if a .vmx setting has been set. $Vmachines = Get-VM | Sort Nameforeach...

View Article


Move VM disk from one datastore to another

Hi Guys, In my environment we have virtual machines split over two data stores. I'm trying to migrate all the disks from one data store to another using the following code. $HD = get-harddisk...

View Article

Get and Terminate/Disconnect vCenter Idle Sessions

For this script i had an inspiration of Mauro Bonder needs. =) This function retrieves a report with all user sessions that has been idle about 8 hours and the next Terminates that sessions.  function...

View Article


Image may be NSFW.
Clik here to view.

Count total Configured memory in each cluster

Hi, I'm fairly new still, to Powershell and PowerCLI, but im trying to learn. I'm playing around with, trying to extract some data from my vCenter and its going well for now, with some help from this...

View Article

get total datastore storage

how can I get the sum of all my datastores in a location? but I need to break them down based on their names  groupA datastores are labeled: "aaa lun 1" to aaa lun xx" groupb datastores are labeled:...

View Article

snapshot reminder notification advice

PowerCLI newbie... 1) I've been attempting to use the snapshot reminder script posted @ http://www.virtu-al.net.   I've been unable to get the script to work with vSphere 5.5.  It's not finding the...

View Article
Browsing all 16717 articles
Browse latest View live


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