X

Scripting

Apply WhatIf to an entire script

Yesterday, I needed to create a script that would allow me to stop a lot of services in one go,…

Powershell: Get an indented process tree

In PowerShell, there is the Get-Process cmdlet. However, this does not return the ParentProcessId property, so it is unsuitable for…

Reading the Windows Registry from PowerShell

Reading the Windows registry from PowerShell can be a bit cumbersome, when all you wanted to retrieve is the value…

Useful PowerShell functions and snippets

This post contains a few (short) useful PowerShell functions and snippets, that you can include in projects and/or your profile,…

Merging videos with mencoder

In this article, I present an easy way to merge all video files in a directory using the Open Source…

Sharing Clementine song status in Empathy

Found this handy python script for sharing Clementine song status in Empathy..... regrettably it did not work on my Ubuntu…

CMD.EXE: About Variables

In this article I will give some extra information on the usage of CMD.EXE variables in batch files. These variables…

Clearing an Active Directory user field with VBScript

This week I needed to clear the 'logon script' field of all AD users (who had one set). While working on…

CMD.exe recursion in batch: Deleting empty subdirectories

This article addresses one specific use case for recursion in batch: Recursively looping through a directory (also called a folder)…

Cmd.exe: Workaround for “if not exist *.*” and other uses for the FOR command

One of the annoying things in Windows XP/2003 and later, is that the construct if not exist c:\test\*.* echo No…

This website uses cookies.