I need to update the password for the SSRS Execution account for every 15 days. How can I automate this process using powershell or some other scripting?


1 Answer 1


Changing the passwords:

If you are using a Active Directory account you can use the ActiveDirectory PowerShell module.

Set-ADAccountPassword -Identity elisada -OldPassword (ConvertTo-SecureString -AsPlainText "p@ssw0rd" -Force) -NewPassword (ConvertTo-SecureString -AsPlainText "qwert@12345" -Force)

If you are using a Sql Server user than it would be using T-SQL

ALTER LOGIN UserName WITH PASSWORD = 'P@ssw0rd';  

Updating the Service:

$service = gwmi win32_service -computer [computername] -filter "name='ReportServer'"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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