Setting a password using SecureString
1 answer
SecureString
Unfortunately, not all .NET password processing APIs use . Not sure why as the class is SecureString
preceded by DirectoryServices.AccountManagement.UserPrincipal
multiple versions.
You can use the PowerShell cmdlet Set-ADAccountPassword
that takes SecureString
.
+2
source to share