about 10 hours ago - No comments
For the PowerCLI lovers out there you may want to check out the recent Get-Scripting Podcast.
This month Jonathan and I have interviewed the master of PowerCLI himself, Luc Dekens or LucD on the forums and LucD22 on twitter.
Anyone who has ever visited the PowerCLI forums will know who Luc is, he also has an amazing [...]
about 19 hours ago - 3 comments
The use cases for PowerCLI and automation continue to amaze me, a couple of nice use cases I have seen recently involve automating the deployment of VM’s for various reasons.
The first reason, performance, what happens when a VM which is sat there for most of the year suddenly becomes busy and doesn’t have enough resources [...]
about 3 days ago - 6 comments
One of the cmdlets that has been much improved in the recent version of PowerCLU 4 U1 is the Invoke-VMScript cmdlet,
This cmdlet runs a script or command inside the guest OS of each of the specified virtual machines. To run Invoke-VMScript, the user must have read access to the folder containing the virtual machine and [...]
about 4 days ago - 3 comments
So you want to learn PowerCLI, if your not a book kinda person and haven’t purchased Hal Rottenberg’s great book, Managing VMware Infrastructure with Windows PowerShell then there is great news for you.
Trainsignal have let it slip that coming soon to a website near you will be….
Managing VMware vSphere with PowerCLI – Hal Rottenberg
Video 1 [...]
about 1 week ago - No comments
Today a question was asked of me, someone asked how to find out who had deleted a ResourcePool, now im not one to get anyone into trouble but I also cant resist a scripting challenge so here was the process I used to write the following one-liner:
Get-VIEvent | Where { $_.Gettype().Name -eq "ResourcePoolDestroyedEvent"} | Select [...]
about 1 week ago - 6 comments
Recently I have had a few comments on an old post I wrote showing a one-liner to get the VM’s disk sizes for each VM, I was asked if there was a way to export this information into a CSV file.
The easy answer is yes but what you need to do is build up a [...]
about 2 weeks ago - 12 comments
Well not quite but the next best thing, I have been putting off getting an iPhone for a while now, I have always been a Windows mobile man starting back with one of the first windows mobile devices around, these were always one step ahead of the other phones when it came to the gadgets [...]
about 3 weeks ago - 7 comments
As the service console is moved further away from the hypervisor, people are finding it harder to configure ESX in the same way as has been done in previous versions.
Moving forward the only way to do this really is by accessing ESXi through the API using scripting toolkits such as PowerCLI or the Perl toolkit.
There [...]
about 3 weeks ago - 3 comments
Previously when installing ESX it has picked up all devices and automatically installed everything needed to use the server as an ESX host, recently whilst installing a new Dell R710 (a great review of the server can be found on the techhead.co.uk site here) I came across an issue where the additional Network Adapter in [...]
about 3 weeks ago - No comments
I was contacted by someone who needed to automate some changes to their virtual infrastructure, I can never resist a challenge so of course I agreed to help.
He worked for a Virtual Hosting platform who offer hosting at a low cost of entry. Each customer where he works is provided with a dedicated virtual machine, [...]
about 7 months ago
Hey Allan, a suggestion it would be nice to see the size of the snapshot file(s) in GB the e-mail
about 7 months ago
Love it!
about 7 months ago
@Ivo Beerens
Good thinking V2 Coming up !
about 7 months ago
@Jason Boche
Thanks man
about 7 months ago
I get an error when running the script error line 93 char 13
+ $MailText = @ <<<< "
If I remove the @ I get another error with another @ symbol farther down.
about 7 months ago
@chris
My blog mangled the code, I have now moved it over to a different hosting method so please try the above.
Let me know if you have any further issues.
about 2 months ago
Good script,thanks. I had a problem with the timing, so I changed the line 50 to:
$filter.Time.beginTime = (($snap.Created).AddMinutes(-30)
about 2 months ago
Well, for me it is semi-working. I get emails, but the script gives me the following error:
You cannot call a method on a null-valued expression.
At :line:63 char:83
+ $key = $_.EntityName + “&” + ($snapshot.CreateTime.ToString <<<< ())
Index operation failed; the array index evaluated to null.
At :line:64 char:32
+ $report[ <<<< $key] = $row
about 2 months ago
@Falko
I had this error also. In my case it was because the Administrator made the snapshot an there is no email adress for Administrator in the AD. My Solution:
Line 10:
if ($username -ne $null -and $username -ne “Administrator”)
Line 86:
if($Mailto -eq $null){
$msg.To.Add(“vmadmin@blah.bla”)
}
else{
$msg.To.Add($Mailto)
}
Hth