Starting the SharePoint 2010 Foundation Search Service using PowerShell

Posted on 7 CommentsPosted in Scripts, SharePoint 2010

It’s been a while since my last real SharePoint 2010 scripting post but we’re getting close to RTM so I figured I need to buckle down and play some catch up and get some long overdue posts published. So, continuing my series of posts on scripting the various services and service applications within SharePoint 2010 I decided that I would share something that I know a lot of people have been struggling with recently – […]

Creating a SharePoint 2010 Enterprise Search Service Application using PowerShell

Posted on 30 CommentsPosted in Scripts, SharePoint 2010

The information in this post is specific to SharePoint 2010 Beta 2 and may need adjusting for the RTM version. In an effort to continue with my previous posts where I demonstrated how to build a basic farm and it’s site structure using XML configuration files and PowerShell for SharePoint 2010 I would like to now share how to create a search service application. An automated install of the service applications is, without a doubt, […]

Creating a SharePoint 2010 Site Structure Using PowerShell

Posted on 14 CommentsPosted in Scripts, SharePoint 2010

In a previous post I detailed how to use PowerShell to perform what would be otherwise done using PSConfig to create an initial SharePoint Farm. In this post I will continue the example and show how to create your web applications using a simple XML configuration file and a reusable script. Like the previous example I have a very basic XML file that defines my web application structure. In this example I’ve included not only […]

Creating Custom SharePoint 2010 Cmdlets using Visual Studio 2010

Posted on 5 CommentsPosted in Article, PowerShell Cmdlets, SharePoint 2010

With SharePoint 2010 we now have the ability to create custom PowerShell cmdlets that can be deployed just like any other SharePoint artifact using SharePoint Solution Packages (WSP) created with Visual Studio 2010. With SharePoint 2007 it was necessary to build a custom setup (MSI) package which had to be run on every server in the farm. This setup package would register a custom snap-in that you’d have to create which would be responsible for […]

SharePoint 2010: PSConfig and PowerShell

Posted on 23 CommentsPosted in Article, PowerShell Cmdlets, SharePoint 2010

The information in this article is based on BETA 2 of SharePoint 2010 – there may be differences with the RTM release. Update 12/18/2009: I’ve updated the post to reflect BETA 2 changes and have considerably simplified the script removing all the dependencies on helper functions so that the core pieces required to build a basic farm are focused on rather than the complex elements to support tracing and error handling as I previously had […]

SharePoint 2010: STSADM and PowerShell

Posted on 6 CommentsPosted in Article, PowerShell Cmdlets, SharePoint 2010

The information in this article is based on BETA 2 of SharePoint 2010 – there will likely be differences with the RTM release. Finally, the NDA is lifted and we can openly talk about SharePoint 2010! There’s so many cool things to talk about it’s hard to decide where to begin, but as the focus of my blog has generally been on STSADM then I suppose that’s a good place to start. The first thing […]

Getting an SPWebApplication object using PowerShell

Posted on 4 CommentsPosted in PowerShell Cmdlets, SharePoint 2007

A SharePoint deployment isn’t much of a deployment if there are no web applications.  A web application in SharePoint contains one or more content databases, each of which can contain one or more site collections, etc., etc.  The SPWebApplication class has tons of methods and properties for directly or indirectly manipulating all things related to web applications – you can do backups, add content databases and site collections, set alert settings, manipulate the web.config file, […]

PowerShell CmdLet Name Changes

Posted on Leave a commentPosted in PowerShell Cmdlets, SharePoint 2007

Ever since I released my PowerShell CmdLets I’ve been unhappy about my choice to use the -gl in the name of the cmdlet.  I felt it would be useful for numerous reasons but I didn’t like that it “broke the rules” of cmdlet naming conventions.  And then Microsoft announced, via the PowerShell team blog, that some code will be added to V2 to enforce the prescribed naming conventions.  You can find the post here: http://blogs.msdn.com/powershell/archive/2009/04/16/increasing-visibility-of-cmdlet-design-guidelines.aspx.  […]

Getting an SPFarm object using PowerShell

Posted on 4 CommentsPosted in PowerShell Cmdlets, SharePoint 2007

There are several core SharePoint objects that PowerShell programmers may need to work with in order to manipulate SharePoint via PowerShell scripts.  Getting these objects is pretty simple but not all that intuitive to users who are still trying to learn PowerShell and the SharePoint API. The SPFarm object is the top level object for working with SharePoint and it provides access to all the global settings for all servers, services, and solutions that are […]

Working with SPWeb(Info) Objects Using PowerShell

Posted on 5 CommentsPosted in PowerShell Cmdlets, SharePoint 2007

I know, I know, I’m way behind on documenting my PowerShell cmdlets – I will be striving to get them done as soon as possible.  I’ve already documented one of them, the Get-SPSite cmdlet, and I will now continue with the Get-SPWeb cmdlet.  Hopefully I’ll be able to wrap up the others much quicker as they are a lot simpler – then I can finally start building new ones 🙂 Like the Get-SPSite cmdlet the […]