Recent Posts

DSC Package Resource Gotcha

less than 1 minute read

Scenario This quick post covers a gotcha I found using the DSC Package resource. I was having issues installing the Microsoft SQL Server 2012 Native Client (Direct Download: http://go.microsoft.com/fwlink/?LinkID=239648&clcid=0x409) like so. Package 'Sqlncli' { Ensure = 'Present' ...

Get Product ID GUID Directly From MSI File

less than 1 minute read

Scenario You need to find an MSI Product ID / GUID, but don’t want to install it first. Solution The classic way to find an MSI Product ID / GUID is the install it first and interrogate the registry using code like this: However, there is an easier way that doesn’t require installing the p...

Error defining PSDscRunAsCredential Parameter in DSC Configuration

less than 1 minute read

Scenario The following error was occurring whilst testing a DSC Configuration: At line:1 char:15 + Configuration Test { + ~~~~ ConfigurationStatementToken: System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(E...

Using VSTS Package Management for PowerShell Modules

1 minute read

Scenario I wanted to store my PowerShell Modules in VSTS and then install those modules during automated Builds / Releases. Solution Create a New Feed Install Package Management in VSTS from the Marketplace. This is free for up to 5 users. Create a feed called psmodules: Once the ...