Windows Vualt

Started by erezpaz, May 17, 2015, 01:53:27 AM

Previous topic - Next topic

erezpaz

Hi

I want to store password I get from a user to local Windows vault and then extract them as needed in my script. I used to encrypt them and put in text but using the Windows vault is much more secure.

See working with Windows vault in powershell
https://gallery.technet.microsoft.com/scriptcenter/Cached-Credentials-99b1dfdc

Help would be appreciated.

Thanks
Erez

stanl

Have you looked at cmdkey (which comes with Win7/Win8). It would be a little messy bu perhaps easier to code with WB then going the CLR or Powershell route. However, I may have a script that worls with the vault and if I find it I will post for you to look at.

td

In other words, the Powershell script is just wrapping the cmdkey.exe command line utility.  There are numerous ways to do that in WinBatch with examples of most of them in the Tech Database.   One relatively simply approach is to use the built in 'WShell.Script' Windows shell object to capture command line utility output

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/DOS+Get~results~from~STDOUT~-~UDF.txt
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade