Quantcast
Channel: VMware Communities : Document List - vSphere PowerCLI
Browsing all 379 articles
Browse latest View live

Fast Snapshot Report

We needed a way to identify all machines that had snapshots.  Get-snapshot was far too slow, so I wrote this script to quickly generate a report of all VMs with snapshots more than 2 weeks old.  This...

View Article


Image may be NSFW.
Clik here to view.

vCenter Statistics Level Audit Script

The following script was written  to  solve a problem in our environment where we had a vCenter server that  had  it’s Statistics Level set much too high.  While the high  granularity is  helpful  for...

View Article


Delete folder in datastore

Hi all, I've been trying forever to use the "$fileMgr.DeleteDatastoreFile_Task" command in PowerCLI.I create clones for backup, and after cloning I remove them from the inventory. So now I want to...

View Article

Run Script on host ESX and copy results back to server

I am new to using PowerCLI and hoping that this will save me time from going to 26 ESX host servers and doing it manually. I am looking for a command to run an audit.sh script that is copied out to the...

View Article

Get DataStore Usage Report on email.

Hello Friend, Find the attached script to Get DataStore Usage Report on email.This will give you HTML format report on your email and with RED mark if any datastore is running with less then 20% of...

View Article


Get Datastore details by selected DataCenter in a VC

This script will connect to multiple VCs > List Datacenters > Will ask to enter DC name from which you wan to colleact datastore details.

View Article

I Need help, How to configure IP addresses of VMs with PowerCLI

Hello everyone, I open this topic because i really need your help. I've written a script that can automatically create 10 virtual machines on my ESX Server.I run the script with PowerCLI. I want now by...

View Article

Help with Customization Specification

Good Day,     I am trying to create a script that will import a Customization Specification (Custom Spec) that was created in a different vCenter. As we know the Password for the local administrator...

View Article


Help with ESXi 5.0U2 hosts and PowerCLI / CLI

Can I use PowerCLI U1 and VMware CLI 5.0U1 on hosts with U2?? I am having issues.

View Article


Some PowerCLI cmdlet does not work with Powershell Remoting

Hi All, I am trying to run the PowerCLI in a remote powershell session. Connecting to vSphere works just fine however some of the cmdlets just hangs. I checked with Fiddler and it appears that the...

View Article

ZeroDatastores.ps1

View Article

Powershell script help - creating a VM inventory

Hi - I need to create a very specific output for VM inventory purposes.I have, by hook and by crook, coppled together a script that works well for my needs, except for one issue I cannot resolve.My...

View Article

Question about Set-VMGuestNetworkinterface and Get-VMGuestNetworkInterface

Hi all, I'm trying to write powercli scripts to mass change VM IP addresses and hostnames.  The hostnames I have no clue how to tackle, but I figured I could use Set-VMGuestNetworkInterface and...

View Article


Automated daily snapshots

I looked around for something to create and manage daily snapshots and didn't find anything, so I wrote this.  Thought I'd share in case others might use it.cd 'C:\Program Files...

View Article

Need help import OVF using DeploymentOption

Hi there,I am using PowerCLI PowerShell script to automate the import of OVFs.My problem is that my OVF has DeploymentOption section with 2 configurations, where each configuration points to a...

View Article


Need a Script for ISCSI Multipathing please

Hi  I was hoping someone could please point me in the direction of a PowerCLI Script that will override the ISCSI vSwitch configuration so that each VMkernel port maps to only one active adapter (and...

View Article

Invoke-VMscript output selection

Hi everyone, I have some trouble to get a scriptout from an invoke-vmscript command. first of all, i'm running powercli x32 5.1R2 on vshpere 5 (ESXi 5). I'm running a script to display the license...

View Article


Query: VMparameter script working on 1 vcenter but not on another vCenter

Hi, I have created a script to retrieve  VM paramters "VM Name, DNS Name, Creation Date, Power State ,OS Full Name ,VM Hardware Version , Tools Version , VM Tools Status , CPU HOT Enabled, Memory Hot...

View Article

A script that returns the date a VM was created

Hello All,  I am in the process of writing a short script that returns the a VM name, the creator's username, and the date/time that the VM was created. The script then outputs the results to a CSV....

View Article

Image may be NSFW.
Clik here to view.

VMware Healthcheck script

VMware Healtcheck scriptIntroduction: Healthcheck is a Powershell script that reports information like snapshots, VMware tools version, datastore space, CDROM and/or floppy drives connected, VM details...

View Article
Browsing all 379 articles
Browse latest View live


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