title: Is there any way to pass (Powershell) secure-string credentials to runas command?
body: <p>I would like to invoke Clearprojexp.exe as runas different user.</p>
  
  <p>I was trying to use as follows in my powershell prompt </p>
  
  <pre><code>runas /noprofile /user:Domain\UserName Clearprojexp -credential (Powershellfile.ps1 -get "E:\EncryptedPwd.txt")
  </code></pre>
  
  <p>But it asks to enter password manually. As powershell has provision to store Password as encrypted string in file, is there any way i can pass the encrypted password from the file?</p>
  
  <p>My intention is to just run a script to open Clearcase project explorer as runas different user.</p>
  
  <p>There is a /Savecred option but i am not sure whether it would store the password in secure form. </p>