How to Use PowerShell to Set Secure SA Passwords in Bulk

  • Comments posted to this topic are about the item How to Use PowerShell to Set Secure SA Passwords in Bulk

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • Hi Vincent. Excellent article. I am getting a small error in resetting the SA password. Its in Bulk Reset the SA passwords script. Please let me know if I need to change something.

     

    sapwd : The term 'sapwd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check

    the spelling of the name, or if a path was included, verify that the path is correct and try again.

    At C:\Work\SA_Password\Bulk_Change_SA_Password.ps1:5 char:111

    + ... e -Database master -Query "ALTER LOGIN sa WITH PASSWORD = '$(sapwd)';

    + ~~~~~

    + CategoryInfo : ObjectNotFound: (sapwd:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply