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 »
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 »
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 »
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 »
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 »
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 »