Monday, 28 June 2010

C# code in a PowerShell script

Found this excellent article today from Stefan Goßner which gives you the best of both worlds – access to the SharePoint Object Model using C# code in a PowerShell script. Great for re-using code you might already have written, for when you want to use the IntelliSense features in Visual Studio to create your code, or if you want to run code without having to compile an executable each time. Just make sure you test it on a dev environment first!!