Category Archives: Scripting & programming

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

Powershell: Escape a String for regular expression.

Hi,

when a pattern for a regular expression contains reserved characters it can be difficult to quote all these signs correctly.

Continue reading Powershell: Escape a String for regular expression.

Windows 10: Determine history of feature upgrades

Hi,

this powershell script determines the previous Windows 10 ReleaseIDs and install date of all feature updates applied to a system.
Continue reading Windows 10: Determine history of feature upgrades

Powershell: Convert UNIX Timestamp to DateTime

Hi,

simple one liner to convert an UNIX Timnestap to DataTime object.
Continue reading Powershell: Convert UNIX Timestamp to DateTime

Hexdump: Hexdump a binary file and convert it back

Hi,

for hexdump (binary) files and converting back the Linux command line xxd works perfect.

Continue reading Hexdump: Hexdump a binary file and convert it back

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