Retrieving the URL of an app catalog site in SharePoint 2013

In some of my recent work with the xSharePoint resources we came up with a need to retrieve the current URL of an app catalog so that we could determine if the current settings were correct or not. The issue with this is that we found there is no out of the box cmdlet to…

6

Better approaches to unit testing PowerShell scripts that call SharePoint cmdlets

For those who have come across my blog before you would have seen my recent post on how to unit test PowerShell scripts that call SharePoint cmdlets, which after I posted started a conversation between myself and Jakub Jareš (PowerShell MVP and Pester Owner) around the approach I had taken and some of the flaws…

1

How to unit test PowerShell scripts that call cmdlets from the SharePoint snap-in

Update: If you’re reading this then be sure to have a read of the comments too – some good insight and points from nohwnd on the Pester team that are also worth considering if you are interested in this stuff. Update 2: I’ve posted a new post related to this which shows an improved way…

10

Cross server DSC dependency options with Azure Resource Manager templates

One of the topics I have been discussing a little lately around the use of the DSC extension for Azure virtual machines is how to create dependencies for DSC configurations that work between servers.If you’re not familiar with how to use the DSC extension in Azure ARM templates have a read of my previous blog…

1

Deploying the Azure DSC extension through ARM

One of the things I have been working on a lot lately is PowerShell DSC, and to give me an easily repeatable deployment process for test environments I’ve been making heavy use of Azure Resource Manager templates (if you’re not familiar with what these are go and have a read of this – https://azure.microsoft.com/en-us/documentation/articles/powershell-azure-resource-manager/). As…

6

Announcing the xSharePoint module for PowerShell DSC!

I am super excited to be able to get this one out there – PowerShell Desired State Configuration (DSC) is a great mechanism to automate configurations of Windows Server and the products that run on them, but to date there has not been a set of DSC resources that allowed the deployment and configuration of…

6

Using DSC to download from Azure file storage to an Azure VM

I’ve been exploring a lot PowerShell Desired State Configuration lately, and one of the things I’ve come up against was the need to be able to move files from a file share in an Azure storage account, to the local file system of a VM (usually to install software). Now since I’ve been trying to…

7

System.IO.FileLoadException for System.ServiceModel.dll in SharePoint 2013

I came across an interesting situation recently when doing a fresh installation of SharePoint 2013 where once the installation was done no one could access the site – instead there was a tonne of errors in the ULS logs with the below exception: The given assembly name or codebase, ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll’, was invalid. It took a…

3