Solved

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

Posted on 2013-06-02
2
515 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial demonstrates in Google Analytics how to create a custom report that shows you traffic over time using the month of year dimensions. There are also instructions on how to fix Google's odd month of year formatting, which Microsoft …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

14 Experts available now in Live!

Get 1:1 Help Now