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

前端 未结 5 2128
长情又很酷
长情又很酷 2020-11-29 07:07

I was doing something like described in this post to save credentials in a secured file so our automated process can use that to run remote PS scripts via Invoke-command: ht

5条回答
  •  囚心锁ツ
    2020-11-29 07:58

    You have to create the password string on the same computer and with the same login that you will use to run it.

提交回复
热议问题