Solved

How do I encrypt the contents of a config file to use on multiple machines

Posted on 2013-06-02
2
526 Views
Last Modified: 2014-11-12
I have a script that sends a report daily from multiple machines via gmail.  The script needs to input the username and password when emailing the report.  I do not want to store the credentials in plain text and have found a way of storing them as a secure string, not perfect but at least it is not in plain text.  

From reading it looks like I cannot deploy a single config file on multiple machine, different Worgroups/Domains etc. because the encryption uses local security keys and is tied to the userid that created the secure string.

The question:
I am looking for a simple process to create a config file that can be reused across multiple environments and keep the UserID and password encrypted.

I know this is not completely secure but am willing to deal with possible fallout.
0
Comment
Question by:c7c4c7
2 Comments
 
LVL 18

Accepted Solution

by:
Andrej Pirman earned 500 total points
ID: 39215060
Well, I do not have an option to test, but here are few examples.
This is for using Active Directory to store and retrieve password as an encrypted hash:
http://www.techrepublic.com/blog/networking/powershell-code-to-store-user-credentials-encrypted-for-re-use/5817

And a similar one with examples, how to store password to a file and read it, all secured with hash.
http://www.activexperts.com/activmonitor/windowsmanagement/powershell10/0029/

It will work all across windows domain.
0
 

Expert Comment

by:MolinaTec
ID: 39215093
Use truecrypt.  Truecrypt Website
0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
A brief introduction to what I consider to be the best editor for PowerShell.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates how to create custom reports and the secrets of determine the metrics and dimensions for your data that works best with your needs.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now