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 ArticleNeed 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 ArticleInvoke-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 ArticlePowershell 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 ArticleQuery: 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 ArticleChecking for configured subnets
My company keeps a separate database of avaible IP's from which VMs are to utilize. The problem is that there is a delay between what subnets are contained in the database and what has been actually...
View ArticleNTP, PowerShell, It's about time.
There's no doubt that time is critically important in a computingenvironment. Given this sensitivity, and the recent recognition that wehad rogue hosts improperly configured, I decided to crank out a...
View Articlecopy-datastoreitem
Hi Guys, I am trying to upload few folders to a datastore. It fails with below message. Upload of file failed. Error message: The remote server returned an error: (400) Bad Request. I tried creating a...
View ArticleChange Storage Profile on Medias after vCloud Director Upgrade to 5.1
#Here is a script example to change the *any Profile to the correct one, after an Upgrade to vCloud Director 5.1$medias = get-media$i=1$total = $medias.countforeach($media in $medias){$storageprofile =...
View ArticleFind snapshots and send email to user/users
We have had some issues where VCB doesn't clean up after itself everytime it runs so I wrote a quick script that will query all the VM's for current snapshots left over and send an email to me with...
View ArticleVMware 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 ArticleA 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 ArticleNeed a script to change tools locker setting
have this as the working line but i want to run this per cluster, need some help from the gurus out there Get-AdvancedSetting -Entity 'hostname' -Name UserVars.ProductLokerLocation |...
View ArticleVM Inventory from Multiple VCs
Hello, You can pull the VMs inventory using PowerCLI script from the multiple VCs. It will give you VCName, VMName and their respective information in Excel file.
View ArticleSnapshot Email Reminder
Fed up of chasing those people who constantly create snapshots and leave them hanging around for weeks or even months on end ? You no longer have to do the chasing, just use the following script to...
View ArticleReport into MS Word
Firstly, I wanted you to know that I only started with PowerShell around a month ago when I saw the cool things you were doing with the beta of the VI toolkit, so not only have I been learning the...
View ArticleGet 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 ArticleFind Orphaned VMDK's
(This script is for ESX 3.01, to find snapshots on 3.5 and above change the script en the names it searches for!!!!!) Hi, This script will find all orphaned vmdk's on all your virtual centers...
View Article