Month: April 2011
Working with Correlation IDs in SP2010
One of the most useful (from an Admin’s perspective) improvements in SharePoint 2010 was the introduction of Correlation ID’s to assist with diagnosis of errors. Unfortunately a lot of people I’ve talked to don’t use them because they don’t understand how.
I recently came across this post from Tobias Zimmergren that does a superb job of showing you several quick and easy ways to make these little GUID’s work for you.
In short…
get-splogevent | ?{$_.Correlation -eq "<GUID>"} | select Area, Category, Level, EventID, Message | Format-List
…will return the detailed log chain relating to that ID, in a human readable format. Handy.
And this..
SELECT [RowCreatedTime], [ProcessName], [Area], [Category], EventID, [Message] FROM [WSS_UsageApplication].[dbo].[ULSTraceLog] WHERE CorrelationId='<GUID>'
…in a SQL query will return much the same detail. I particularly like the suggestion of inserting this in a data-query web-part in Central Admin web-part. Super handy.
PDF Security in SharePoint 2010
Here’s a handy nugget of information I picked up at NZSPC2011.
Out of the box, SP2010 will force you to save PDFs from SharePoint, not open them. This is to prevent XSS which is pretty easy to do in PDFs. Good solid security principal that one – I like it.
For most users however, this comes as a jarring change to what they’re used to, so queue complaints from users, and an SP Admin looking for a quick fix. Google will quickly point you at hundreds of suggestions to change the Browser File Handling setting from Strict to Permissive (set per web-application, under General Settings).
This is a purely evil approach, as it immediately relaxes file handling security for ALL file types, not just PDF.
The better way of doing this, is setting an ‘Inline Download’ exclusion just for PDF files. There’s a good post at pdfsharepoint.com by Dmitry that covers this in detail, but here’s the important bit..
Via PowerShell, run the following script to create a MIME type exclusion for PDF files in your web application. The only value you need to change here is the http://webapp.domain bit – set it to your web application hostname.
$webApp = Get-SPWebApplication http://webapp.domain If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains "application/pdf") { Write-Host -ForegroundColor White "Adding Pdf MIME Type..." $webApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf") $webApp.Update() Write-Host -ForegroundColor White "Added and saved." } Else { Write-Host -ForegroundColor White "Pdf MIME type is already added." }
Lync 2010 April 2011 Cumulative Updates Available
April 13, 2011
Lync
No Comments
gingerninjanz
Full Details
http://support.microsoft.com/kb/2496325
Read More »