Sunday, August 25, 2013
Update SharePoint 2010 Farm Credentials Using PowerShell
#Input the Managed Account
#If there is only one managed account, the following line could be written as:
#$inputManagedAcct = Get-SPManagedAccount
$inputManagedAcct = Read-Host "Enter managed account as Domain\User"
#Input the desired new password
$inputPasswd = Read-Host "Enter new password for managed account" –AsSecureString
#Change the password for the managed account to the new value
Set-SPManagedAccount -Identity $inputManagedAcct -NewPassword $inputPasswd
------------------------------------------------------------------------------------------------------------------------------------------------------------ Update after AD Reset ----------------------------------------------------------------
#Input the Managed Account
#If there is only one managed account, the following line could be written as:
#$inputManagedAcct = Get-SPManagedAccount
$inputManagedAcct = Read-Host "Enter managed account as Domain\User:"
#Input the Managed Account
$inputPasswd = Read-Host "Enter password from Active Directory for managed account:" –AsSecureString
#Change the password in SharePoint for the managed account to the new value
Set-SPManagedAccount -Identity $inputManagedAcct -ExistingPassword $inputPasswd –UseExistingPassword $true
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment