I recently encountered a question about how to automatically enable the Nintex Workflow Site Feature on all the subsites under a root site in a Site Collection. This isn’t the first time it has been asked of me, so I thought I’d create a simple PowerShell script to do it. It’s not complex. It just […]
WARNING DO NOT run this on a production system unless absolutely necessary. It iterates through all sites, lists, items and workflows. I have not tested this for performance and system impact. There have been some requests on how to cancel all running workflows. I’ve looked online and have found a number of C# and PowerShell […]
Start of the Story Querying a database is something I do quite regularly. Whether it’s for work at Nintex or other projects. Sometimes this is just from using SQL Management Studio, othertimes, it is for something more complex and requires some code to be written that makes SQL queries and does something on the data. […]
After learning the basics in the first post – PowerShell Basics 101 , the aim is to use this new found knowledge to do some interesting things with SharePoint. Connecting to a SharePoint Site If you open the SharePoint 2010 Management Console, all the appropriate assemblies for SharePoint will be loaded for you. To instantiate […]
Here’s a few basics that I’m aware of that make things easier for me when I play around with PowerShell. Variables PowerShell variables all start with a dollar ($) sign.Initializing a variable requires simply giving it a name, followed by an equals (=) and the value $myVar = 1 If you want to initialize a […]