Error accessing SharePoint 2010 Managed Accounts

Article ID: 2711528 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

When accessing the 'Managed Accounts' page in Central Administration, the following error is seen:

Object reference not set to an instance of an object

The following can be seen in the ULS logs:

System.NullReferenceException: Object reference not set to an instance of an object.  
 at Microsoft.SharePoint.ApplicationPages.ManagedAccountsDataSourceView.FillDataTable(DataTable table, DataSourceSelectArguments selectArguments)   
 at Microsoft.SharePoint.WebControls.DataTableDataSourceView.Select(DataSourceSelectArguments selectArguments)   
 at Microsoft.SharePoint.WebControls.AdministrationDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)   
 at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)   
 at System.Web.UI.WebControls.DataBoundControl.PerformSelect()   
 at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()   
 at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()   
 at System.Web.UI.Control.EnsureChildControls()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

CAUSE

To display the information regarding the managed accounts, the entire collection of managed accounts is enumerated. For each account, a number of properties are looked at including UserName, PasswordLastChanged and AutomaticChange. If AutomaticChange is set to true, the next scheduled change is pulled from the 'Password Generation' timer job associated with the given account. If this timer job does not exist for any accounts set to have the password automatically change, the above error will occur.

RESOLUTION

  1. Identify the Managed Accounts that have automatic password reset enabled with the below script

    Get-SPManagedAccount | ? {$_.AutomaticChange -eq $true} | SELECT UserName
  2. Document the accounts that have an associated 'Password Generation' timer job. The timer job definitions can be found in the Monitoring section of Central Administration.
  3. For any accounts that have the AutomaticChange property set to true and do not have an associated timer job, execute the below script to change the account to no longer have the password change automatically.

    $acct = Get-SPManagedAccount "<DOMAIN>\<UserName>"
    $acct.AutomaticChange = $false
    $acct.Update()
  4. Locate the Managed Account in Central Admin and reset the Automatic Password Change schedule.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2711528 - Last Review: May 16, 2012 - Revision: 4.0
APPLIES TO
  • Microsoft SharePoint Server 2010
  • Microsoft SharePoint Foundation 2010
Keywords: 
KB2711528

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com