• vadim@workflowexcellence.com
  • Utah, United States

PowerShell Basics 102 – SharePoint

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 a Site object, all we […]

PowerShell Basics 101

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 variable to multiple values, eg. […]

Get Feature Name from ID

I recently found some SharePoint log entries that pointed to a feature but only gave me an ID (guid).  Hunting around, I found the easiest way to figure out what feature it was, was to open SQL Management Studio.  Find the SharePoint database, in my case WSS_Content.  There are 2 tables of interest. Features FeatureTracking The following SQL queries helped […]