Reset the Farm Passphrase in SharePoint 2010

01/21/2010

PowerShell

So, you are adding a new server to the farm and you can’t locate that very important password that was on a sticky note attached to your monitor for all to see? No problem! You can use PowerShell to reset / change that forgotten farm passphrase. Note that I said reset and not retrieve. There is currently no option to retrieve the existing farm passphrase.

  • Open the SharePoint 2010 Management Shell (Start > All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell)
  • Enter this at the PowerShell prompt:
    • $passphrase = ConvertTo-SecureString -asPlainText -Force
  • Input the new passphrase and hit Enter
  • Enter this at the PowerShell prompt:
    • Set-SPPassPhrase -PassPhrase $passphrase -Confirm
  • You will be asked to confirm the passphrase by re-entering it
  • Re-enter the passphrase and hit Enter
  • You will be asked if you are sure that you want to perform this action, type Y (for Yes) and hit Enter
  • Your farm passphrase has now been reset!

_____________________

Sponsors *Trusted SharePoint Ads Only!*

Packaged Enterprise Search
for SharePoint.View a quick online demo here! Surfray.com/Ontolica

Free Outlook Sidebar!
Access SharePoint from Outlook w/ harmon.ie Sidebar. Download Now!

SharePoint Migration Tools
Sharegate: No-Brainer Migration Tools for SharePoint. $375.

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.

Subscribe

Subscribe to our RSS feed and social profiles to receive updates.

12 Comments on “Reset the Farm Passphrase in SharePoint 2010”

  1. Brian Jones Says:

    I am trying to change the password with the instruction above. I get the error message “You need to have Machine Administrator priv to run this cmdlet.” The account I am logged into the server with is a machine admin. Are there any other permissions I need to run this process. Thanks

    Reply

    • sptwentyten Says:

      Make sure you are running the PowerShell session as Admin….meaning, right click no the PowerShell icon and do “Run as Administrator”

      Reply

  2. Michael T Says:

    We used the steps above and get the following error:
    Set-SPPassPhrase : Error deploying administration application pool credentials.
    Another deployment may be active. An object of the type Microsoft.SharePoint.A
    dministration.SPMasterPassphraseDeploymentJobDefinition named “job-admin-passph
    rase-change” already exists under the parent Microsoft.SharePoint.Administratio
    n.SPTimerService named “SPTimerV4″. Rename your object or delete the existing
    object.
    At line:1 char:17
    + Set-SPPassPhrase <<<< -PassPhrase $passphrase -Confirm
    + CategoryInfo : InvalidData: (Microsoft.Share…etSetPassPhrase:
    SPCmdletSetPassPhrase) [Set-SPPassPhrase], InvalidOperationException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletSetPassP
    hrase
    However, no such job exists.

    Reply

  3. sarsinarah Says:

    Hi Adam, very useful document, Thank you.

    I have the same issue as Michael mentioned above, however I found that I should try to clean configuration cache in SharePoint and try again.
    I followed the steps from here for SP2010: http://blogs.msdn.com/b/jamesway/archive/2011/05/23/sharepoint-2010-clearing-the-configuration-cache.aspx
    but after all, the folder stays empty and Cache.ini is still 1, and no new .xml files are created. the PassPhrase reset still gives me the same error as above Michael mentioned.
    I appreciate if you can advice me anything, I am really in trouble as my manager wants me to instal project server today and without PassPhrase, I’m doomed.

    Many Thanks,
    Sarah

    Reply

  4. Swetha Says:

    Thanks. This was really helpful.

    Reply

  5. ashwini Says:

    This is helpfull!Thanks

    Reply

Trackbacks/Pingbacks

  1. Mudando a Passphrase no SharePoint 2010 « Fabian André Gehrke - 02/13/2011

    [...] Reset the Farm Passphrase in SharePoint 2010 CategoriasInfra, Scripts LikeBe the first to like this post. Comentários (0) Trackbacks (0) Deixar um comentário Trackback [...]

  2. Mudando a Passphrase no SharePoint 2010 « SharePointersBR - 04/23/2011

    [...] Reset the Farm Passphrase in SharePoint 2010 Dicas e Truques, SharePoint 2010 ← Obtendo o Perfil do Usuário Logado Virtual [...]

  3. SharePoint 2010 installation on SQL 2012 « Swetha Sankaran - 06/24/2012

    [...] http://sharepointadam.com/2010/01/21/reset-the-farm-passphrase-in-sharepoint-2010/ Like this:LikeBe the first to like this.   [...]

  4. SharePoint 2010 服务器场(Farm)密码(Passphrase)修改 | 孤岛旭日 - 12/06/2012

    [...] 参考:http://sharepointadam.com/2010/01/21/reset-the-farm-passphrase-in-sharepoint-2010/ [...]

  5. SharePoint 2013 Installation Guide – Development Environment | Prashant G Bhoyar's SharePoint Blog - 01/01/2013

    [...] Specify Farm passphrase. Note down the password at secure location which we will need in future. It is impossible to retrieve the farm passphrase. You can just reset it. The instructions are given here. http://sharepointadam.com/2010/01/21/reset-the-farm-passphrase-in-sharepoint-2010/. [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 43 other followers

%d bloggers like this: