Category Archives: Scripting & programming

Somthing about Powershell, VB Script, C#, VB.NET

Powershell: Execute a process and capture STDOUT and STDERR

Hi,

if have to execute a process or script from powershell and you have to capture the output you can use the System.Diagnostics.Process class.

I’ve written a simple function for this case 🙂

Continue reading Powershell: Execute a process and capture STDOUT and STDERR

Python: Install Python with pip on Windows by the embeddable zip file

Hi,

to install Python on Windows download the latest version. In this example Python 3.6.5.

Extract the zip file to an directory, e.g. D:\python3.6.5.
Continue reading Python: Install Python with pip on Windows by the embeddable zip file

Debian: Set python 3 as default

Hi,

debian is still delivered with 2.7 as the default version of python. /usr/bin/python is in fact a symlink to the current default versions binary.

The update-alternatives scripts allows to change this.
Continue reading Debian: Set python 3 as default

Powershell: Accessing Applications and Services Logs

Hi,

for showing or exporting the System, Application and Security Log the command let Get-EventLog is the first choice.
Continue reading Powershell: Accessing Applications and Services Logs

VMware PowerCli: Eject CD/DVD Media from VMs

Hi,

when you have to eject or unmount DVD iso from your VMs, may be the iso files resists on datastore you want to remove, these one liner should help you.
Continue reading VMware PowerCli: Eject CD/DVD Media from VMs