SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to update the property vti_author in an item in a SPDocumentLibrary, but it doesn't work. The items original vti_author is the same even after running this script, why?

$spSite = Get-SPSite http://mySite/
$spWeb = $spSite.OpenWeb("News");
$spDocumentLibrary = $spWeb.Lists["Pages"];
$items = $spDocumentLibrary.GetItems();

foreach ($item in $items)
    $vtiAuthor = $["vti_author"];

    if ($vtiAuthor.EndsWith("sp_reader"))

        # Check out 
        $file = $item.File; 

        # fails - no read only field
        #$["vti_author"].ReadOnlyField = false;

        $newAuthor = "DOMAIN\user"; 
        $["vti_author"] = $newAuthor;  

        # Check in 
        $file.CheckIn("Updated by System");
share|improve this question
up vote 3 down vote accepted

As suggested here:

You should use following fields along with UpdateOverwriteVersion() method to update fields such as author, date created etc.

// The actual User Information is within this SPListItem 
                    SPListItem userItem = documentList.Items.GetItemById(1);                   
                    userItem["Created By"] = currentWeb.EnsureUser("user").ID; 
                    userItem["Modified By"] = userItem["Modified By"]; 
                    userItem["Created"] = DateTime.Now.AddYears(-3); 
                    userItem["Modified"] = DateTime.Parse("01/01/2000");
share|improve this answer
Thanx, I'll try this. – Benny Skogberg Apr 23 '12 at 15:15
It didn't work, the vti_author property stays the same. Sorry. – Benny Skogberg Apr 23 '12 at 19:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.