My Blog

Keep your own MachineKey values in SharePoint 2010 web.config

  In some cases you may need to have specific MachineKey values in the SharePoint web applications web.config. SharePoint will accept this change briefly but will will soon change it to a different value midnight.   This timer job: Health Analysis Job (Daily, Microsoft SharePoint Foundation Web Application, All Servers) will override any modifications to… Read more

Add User Policy using Powershell

    # This script will add to user policy for a web application in SharePoint 2010 # and will add few more things to get rid of this event in the event logs: # Object Cache: The super reader account utilized by the cache does not have sufficient permissions to SharePoint databases. #  See,… Read more

New-SPSite and New-SPClaimPrincipal

Self note: new a new site and set my account as an owner:   $web = "http://localdev/sites/site1" $user = New-SPClaimsPrincipal -IdentityType WindowsSamAccountName -Identity $(whoami) New-SPSite -Name "site1" -Url $web -OwnerAlias $user -Template "CMSPUBLISHING#0"… Read more