Skip to main content

Posts

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: http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/53e79142-88c9-48f1-b5a5-a6259c9f6f97 http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/ec1e2e7e-2fcf-4d16-8c25-a44198b651d9 Solution: 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