...hopefully some useful VMware related stuff

PowerShell

15/04/2010 12:00

List Emails through your Exchange Server between two dates

List Emails through your Exchange Server between two dates   I was troubleshooting an Email issue on an Exchange server and had sent emails with the subject 'Test'. I wanted to see all messages that matched this subject line in the last two days but thought it would be useful to script it so I...
11/03/2010 22:49

Script to test Veeam replica Virtual Machines in a protected method

This script is if you want to check the validity of your Veeam replica virtual machine by bringing it up either disconnected from the network or connected to another test network, without affecting the integrity of the replica and allow the replication to continue after...
11/03/2010 15:16

Connect-viserver parameters

Useful parameters for connecting to viserver with PowerShell in the VI-Toolkit. connect-viserver -user -password eg: connect-viserver -server vCenter -port 443 -user admin -password @dm1n   To direct input from a command line within a script you can use the following:   $vc =...
19/11/2009 12:00

Take Snapshot of a Virtual Machine

This script takes a basic snapshot of a virtual machine, it is a quick script and doesn't quiesce or snapshot the memory of the virtual machine. Use this if you need to take a quick snapshot of a VM before making changes if you don't want to log in to vCenter. Enter the VM name and a name for the...
03/11/2009 08:22

Return slot size information in vSphere

This script will return the slot size information from a vCenter server. Download here - - - # slotsizes.ps1 # 20091103 # https://www.a2-alpha.co.uk # This script checks to see whether you are using # vSphere 4 and if so brings back information on slot sizes # If you are not using vSphere 4 an...
28/10/2009 11:55

Disconnect Virtual CD Drives - CD Remover

The following script, sets the CD Drives of your virtual machines to the Client Device option. It firstly lists machines with CD drives connected then gives you the option to remove or not remove for each one. Download here - - - # Dans CD Remover # cdremover.ps1 # 20091028 # Version 1.0 #...
27/10/2009 11:07

Removing Snapshots older than X days

The script below queries virtualcenter for all snapshots and then checks if each one is older than the amount of days you specify in the command line. Download Here If they are older you get a confirmation as to whether to remove or not. Then it moves on to the next snapshot or ends if the last...