Skip to main content


Showing posts from June, 2011

SharePoint 2010 Foundation Audit Settings

I have recently implemented audit for SharePoint 2010 Foundation using PowerShell.

There was a couple of discussions where some people said it's impossible to enable audit in SharePoint 2010 Foundation:


1. Go to Start -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Management Shell
2. When it is loaded you then run the following command to get your site collection object: $site = Get-SPSite http://site_URL
3. If you don't get errors then execute the following commands one by one to set audit options and update it: $site.Audit.AuditFlags = [Microsoft.SharePoint.SPAuditMaskType]::Update $site.Audit.Update()
4. [Microsoft.SharePoint.SPAuditMaskType]::Update is a enum value of type SPAuditMaskType. You can have a look here for all p…