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

Windows: Enable NTP Client and Server

Hi,

the Windows Time service includes both an NTP Client and an NTP Server. The NTP Server is disabled by default.
Continue reading Windows: Enable NTP Client and Server

My Knowledgebase for things about Linux, Windows, VMware, Electronic and so on…