Published on 30 May 2016
I have been writing a lot of pester based unit tests for PowerShell lately. Unfortunately, I am coming across caveats when testing existing code. I have just been testing code involving PowerShell remoting which creates a new context where mocked cmdlets are not available. I will show you how to write unit tests for remoting code.
Published on 17 May 2016
In a previous post, I demonstrated how pester can be used for writing unit tests checking configuration data for PowerShell Desired State Configuration. I assumed that the data structure for configuration data was already present in memory. In real life, the environment data contained in configuration data is stored in a file. Therefore, I will show you how to load data structures from a file with and without code.
Published on 03 May 2016
In XenApp 7, Citrix offers a very comprehensive PowerShell SDK and introduces cmdlets for migrating the database to a new connection string. If the steps for clearing and setting the database connection are not followed very closely, the database connection may not be recoverable using PowerShell. This article describes an alternative to using PowerShell.
Published on 20 Apr 2016
Microsoft has decided to intertwine the PowerShell cmdlets for managing VHD(X) files and the Hyper-V role. As a consequence, you cannot create, inspect, configure, mount them etc. without the Hyper-V role. There is even an item in Microsoft Connect describing this issue for Convert-VHD. I will present two workarounds, one for environments already implementing Hyper-V as well as environments without using Hyper-V.
Published on 07 Apr 2016
Although hosting your blog in GitHub Pages is very easy to setup, it lacks several features provided by other hosting services like SSL certificates. I have decided to introduce Azure Websites as an alternative because it offers a wide range of hosting options including FTP uploads and server-side code. In addition, Azure Websites can be connected to a source control system to update the hosted content based on changes in the source. This post will demonstrate two important deployment methods.
Published on 21 Mar 2016
In the previous posts I have concentrated on generating a static site on your workstation and integrating your content from WordPress. Fortunately, the static content can be hosted anywhere but there are some publicly available services that offer a pipeline for continuous delivery like GitHub Pages.
Published on 18 Mar 2016
After having presented the arguments for a static blog as well as an introduction to Jekyll, this post will be more hands-on.I will demonstrate how to export all your pages and posts from WordPress to markdown. Most of the work will be done by the WordPress plugin called Jekyll Exporter.
Published on 14 Mar 2016
After I have presented arguments for a static site in the first post in this series, I will provide you with an introduction to Jekyll, the static site generator which I am using for this site. Checkout StaticGen for more static site generators and the popularity of Jekyll.
Published on 10 Mar 2016
I have recently read about static website generators. This got me thinking about my blog which was then hosted on WordPress. I have been quite happy with WordPress but there are several aspects that need to be considered whether WordPress is the optimal platform. The following reasons are very subjective and apply to my situation.
Published on 04 Mar 2016
Since the announcement that Microsoft was planning to bring containers to Windows Server 2016, I have had many discussions about how Windows Containers impact end user computing. I have been asked whether containers are a replacement for App-V as well as Server App-V. It all boils down to the question whether Windows containers can be used to deploy end user applications. The short answer is “no” but let me explain in detail why this is the case.