Solved

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

Posted on 2013-06-02
2
551 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

690 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