Mask SharePoint User Details inside a SharePoint list/library

Working for a recent client there was a need to “mask” user information from a Sharepoint list. The list was intended to store user grievances and complaints and the client did not want to store the information of the user entering the information. It was required to keep the information completely anonymous.
So, I found that the following property of a SPList could be the right thing to do in this case
The default behaviour of SharePoint is to store the user information like shown below

List Without Mask
Without Mask

So, now run the following PowerShell command and see the difference

$web=Get-SPWeb "http://sharepointurl"
$list=$web.Lists["Employee Grievances"]
List With Mask
With Mask

So, there you go. Happy SharePoint”ing”

Set a Default View for a document library using Powershell

I have tried to elude myself from Powershell till now (really not sure why). However, finally the trend broke few days back when someone needed my help to do the following and I had o dive in

$site= New-Object Microsoft.SharePoint.SPSite ("http://siteUrl")
$view.DefaultView = $true