| I love PowerShell, use it for all kinds of things, big stuff and small stuff. As a note if you too love PowerShell check out the following book:
http://www.amazon.com/Automating-SharePoint-2010-Windows-PowerShell/dp/0470939206/ref=sr_1_1?ie=UTF8&qid=1319752024&sr=8-1
Fantastic for all those SharePoint commands you just wondered how to use, kudos out to Gary and Shannon, it is my PowerShell bible :-)
On that note just used a nifty piece of PowerShell to set the "CallStack='True'" and "CustomErrors='Off'" on a site I was testing so thought I would send it your way:
$wc = "C:\inetpub\wwwroot\wss\VirtualDirectories\{site}\web.config" $d = new-object System.Xml.XmlDocument $d.Load($wc) $d.get_DocumentElement()."sharepoint".safemode.callstack = "True" $d.get_DocumentElement()."system.web".customErrors.mode = "Off" $d.Save($wc)
Works like a treat and save a bunch of time when I had to set it on six sites. Maybe this is useful. :-) |