July 13, 2022 at 1:25 pm
Hello,
Need to change the SQL service and agent passwords. How to achieve this using a PowerShell script?
Can this be achieved without using Get-WMiObject Win32_service class?
Thanks.
July 13, 2022 at 4:15 pm
hum... I would not do it - use the correct UI https://docs.microsoft.com/en-us/sql/relational-databases/sql-server-configuration-manager?view=sql-server-ver16 as it does a bit more behind the scene - and while you are at it change the accounts to be MSA/GMSA so you don't ever have to change them again!!
for scripting - did you look at https://devblogs.microsoft.com/scripting/use-powershell-to-change-sql-server-service-accounts/
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy