Victor Vogelpoel

Excellence is in the details


4 Comments

PowerShell: Compare-Directory.ps1 – comparing file contents and directories with Compare-Object and MD5 hash

In a after-site-deployment scenario, I needed to compare site directories and files on front-ends in a load-balanced web server farm to make sure these sites contained identical files and directory structure. When a hotfix was applied by an administrator, once too often files were not deployed properly and behavior of the site was not consistent because of the differences in file or configuration on front-ends. To diagnose these kind of problems more quickly, I developed PowerShell command Compare-Directory to compare a reference directory with one or more difference directories.
Continue reading


Leave a comment

PowerShell: Get-SPCField.ps1 – Getting SharePoint fields using Client Side Object Model

I am currently working on PowerShell scripts to ease SharePoint 2010/2013 configuration deployment in DTAP environments. These scripts started out with SharePoint Object Model (server side) dependencies, but in a discussion with Macaws SharePoint master Bram de Jager, I wondered if similar commands could be crafted with the SharePoint Client Site Object Model functionality as well. Goal is to create a proof of concept Get-SPField that uses SharePoint Client Object Model instead of the server SharePoint object model.

Continue reading