Choosing between database types
Nov 23 11:35:01
Askari and Java prototyping
Nov 22 4:48:43
Finding scarcity in the digital economy
Nov 10 12:17:27
Tornado - the web services server?
Sep 19 23:19:55
Quote of the week
Jul 18 9:18:44
Unfortunately, I don't know who to thank for this ripper tip about SharePoint:
Any installation of WSS 3.0 or MOSS 2007 is no complete with PowerShell. Why? Because it makes situations like this so easy.
Save the following as SharePoint.ps1:
[System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"); function Get-Site($absoluteUrl) { return new-object Microsoft.SharePoint.SPSite $absoluteUrl; } function Rename-Field($site, $oldTitle, $newTitle) { $field = $site.RootWeb.Fields[$oldTitle]; $field.Title = $newTitle; $field.Update; }Now the rename function is availble on request:
1> .\SharePoint.ps1 2> $site = Get-Site http://localhost/PlaySite 3> Rename-Field $site "FIO" "Title"When it comes to SharePoint administration, PowerShell is your new best friend - no compiled code, no deployment issues and you can sign all scripts for use on production servers.
Amen to that!