1

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

1
0

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';  
    GO  

Updating the Service:

$service = gwmi win32_service -computer [computername] -filter "name='ReportServer'"
$service.change($null,$null,$null,$null,$null,$null,$null,"P@ssw0rd")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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