Kirk Evans Blog

.NET From a Markup Perspective

Playing with SharePoint 2010 MUI

This post shows how to set up a SharePoint environment to explore the multilingual user interface (MUI).  Background I admit to being a typical American.  When I write applications, I hardly ever use resource files to support any language other than English.  My friend Derek Noonan sent me this map that makes me laugh (“Here… Read more

Add Microsoft.SharePoint.PowerShell Snap-In to All PowerShell Windows

This post will show you how to ensure Add-PSSnapin "Microsoft.SharePoint.PowerShell" has been executed in all PowerShell windows. Background I have been doing a lot of work in PowerShell lately, and found myself frequently in the PowerShell ISE window writing scripts.  I was constantly adding the line Add-PSSnapin "Microsoft.SharePoint.PowerShell" at the top of every script I… Read more

Create DNS Entries From a File

This post will show how to create DNS entries from a file using the DNSCmd.exe tool. Background I have a kind of edge case that I am trying to troubleshoot for my customer.  They have a lot of sub-companies, and they created a web application per company.  Fast forward a few years, they now have… Read more

Set IIS Log Fields with C#

This post shows how to set the log fields for IIS web sites programmatically.  Code is attached at the end of the post. Background I have a customer that has many web applications, and we need to set the IIS log fields to do some investigation.  James Blackwell posted a great sample of how to… Read more