Saving credentials for reuse by powershell and error ConvertTo-SecureString : Key not valid for use in specified state?

ConvertFrom-SecureString takes a Key ( and SecureKey ) parameter. You can specify the key to save the encrypted standard string and then use the key again in ConverTo-SecureString to get back the secure string, irrespective of the use account technet.microsoft.com/en-us/library/dd31... In a project, I have implemented asymmetric encryption, whereby people encrypt the password using the public key and the automation process has the private key to decrypt passwords: Handling passwords in production config for automated deployment.

ConvertFrom-SecureString takes a Key ( and SecureKey) parameter. You can specify the key to save the encrypted standard string and then use the key again in ConverTo-SecureString to get back the secure string, irrespective of the use account. technet.microsoft.com/en-us/library/dd31... In a project, I have implemented asymmetric encryption, whereby people encrypt the password using the public key and the automation process has the private key to decrypt passwords: Handling passwords in production config for automated deployment.

Thank you, it works! You saved me again! :) just a question (probably dumb) but if I put a key in my script, won't it be the same thing as just typing password there?

– mishkin Aug 18 at 16:40 1 I haven't use the key method much, but general idea is you have it in a particular location ( key store) on machine where you run the scripts, the script reads from there and decrypts. In the assymetric version, the public key is known, so people can encrypt the password, but only those who have the private key can decrypt. The private key is on the machine that runs the scripts.

The script only knows where to look for it. Hope this makes sense. – manojlds Aug 18 at 16:51 I owe a beer once my project is done!

Thanks a lot! – mishkin Aug 18 at 17:13.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions