Posts Tagged “PowerShell”

Find The PowerShell Command You Were Looking For

September 15 2010 2 comments

PowerShell might be a new beast for many SharePoint administrators. Microsoft has been helpful by providing hundreds of commandlets with SharePoint 2010. However, when the commandlets have names such as Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance, remembering the correct commandlet can in many cases be impossible. Using tab key for autofill  is not very usefu, considering the commandlet naming conventions.

Luckily the PowerShell basics are here…

Read more »

PowerShell Does Not Reload Upgraded Assemblies

September 6 2010 One comment

If you use PowerShell while developing with SharePoint 2010, you may have come across this. After you upgrade your packages, PowerShell uses old versions of the assemblies that were supposed to be upgraded. This is because the assemblies are loaded to PowerShell’s app domain, and as long as they are used from the same app domain, they do not get…

Read more »

PowerShell Tip: Adding Users Without an Email Address

June 2 2010 3 comments

Here’s another handy quickie: we have a bunch of users we want to add as owners when building a SharePoint site, but the adduser STSADM command won’t accept an empty email address. We don’t have real addresses for the users, nor do we want to make something up.

The SharePoint API doesn’t require that users have email addresses, though, so…

Read more »

PowerShell Tip: Searching for Controls Without a Fully-qualified Type Name

May 28 2010 One comment

Today’s post is a quick tip. I’m working with some older code where a lot of the ascx files don’t have a fully qualified type name in the Inherits attribute of the Control directive. I wanted to find them without having to open dozens of files and manually search for offenders:

function Find-Controls-Without-PublicKeyToken([string]$directory) {

Read more »

64-bit SharePoint Assemblies and 32-bit PowerShell Are A Bad Match

May 27 2010 2 comments

Here’s a quick update to break the silence: while browsing Twitter this morning, I came across a link that should be interesting for us PowerShell aficionados. It turns out that trying to use the 64-bit SharePoint assemblies from a 32-bit PowerShell host might not work. While the fix is trivial, the error message is certainly misleading: it looks as if…

Read more »

Customizing PowerShell to be a Read-Eval-Print-Loop for SharePoint

May 12 2010 3 comments

In my previous post I briefly ventured into the world of on-the-fly SharePoint administration using PowerShell. Today, I want to take that idea a step further.

The first thing that popped into my mind when considering using PowerShell was the fact that doing anything interesting with the…

Read more »
Page 1 of 212