Convert VMWare PowerCLI Invoke-VMScript Output into PSObjects Array

There is a very usefull CMDLet Invoke-VMScript which comes with VMWare PowerCLI. You can use it to run the PowerShell scripts against a virtual machine (VM).
The CMDLet has several advantages over native PowerShell 2.0 remoting:
1. Avoiding one hop while executing the script (on the VM, the script is executed from the first person).
2. Ability to run the script against host-only VMs.

The only trouble is that this CMDLet returns the results as raw text which is not possible to handle like a PSObjects array.

To workaround this issue, you can use the following approach:

Invoke-VMScript -VM VirtualMachineName -ScriptText “Your script here | ConvertTo-CSV -NoTypeInformation” -HostUser root -HostPassword “rootpassword” -GuestUser DOMAIN\admin -GuestPassword “adminpassword” | ConvertFrom-CSV

St. Petersburg, Russia #Chess 2010. Girls Under-10 final report

The report for the St. Petersburg, Russia Girls Under-10 final (November 30 – December 8, 2010). Ksenia Vlasenko scored 6,5 points from 9 (+5=3-1). The top four girls will be playing the Russian Championship in April 2011!

# Name Pts Buh
1 Назарова А. 2001 7.5 45.50
2 Жемчужина Е. 2001 7.0 49.50
3 Панкова Ю. 2002 6.5 51.50
4 Vlasenko Ksenia 2001 6.5 50.00
5 Головкина А. 2001 6.5 45.00
6 Соложенкина Е. 2003 6.0 47.50
7 Елисеева М. 2003 6.0 39.50
8 Нугаева А. 2003 5.0 46.50
9 Коваленко К. 2003 5.0 45.50
10 Чеботаева Е. 2001 5.0 42.50
11 Герасина Е. 2001 5.0 42.50
12 Агеева В. 2001 5.0 39.50
13 Мокеева Е. 2001 5.0 31.00
14 Камынина Н. 2001 4.5 46.00
15 Дронченко А. 2001 4.0 49.50
16 Михайлова О. 2001 4.0 43.50
17 Ремизова А. 2001 4.0 34.00
18 Костина Л. 2001 4.0 34.00
19 Клинская Б. 2002 4.0 33.50
20 Воробьева Л. 2001 3.5 37.00
21 Пилецкая А. 2001 3.5 35.00
22 Монакова И. 2003 3.5 33.50
23 Мороз А. 2003 3.0 41.50
24 Попова Л. 2001 3.0 37.50
25 Жоголь Е. 2002 3.0 35.50
26 Жоголь А. 2002 3.0 30.50
27 Гудкова Д. 2002 2.0 36.50
28 Кузьмина Е. 2001 1.0 43.50
29 Полякова О. 2001 1.0 28.00

source: http://www.totalchess.spb.ru

Do not log requests for images in the access log

The following lines should be included in httpd.conf to keep requests for images from appearing in the access log. It can be easily modified to prevent logging of particular directories, or to prevent logging of requests coming from particular hosts.

SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
CustomLog logs/access_log env=!image-request