troubleshooting Question

Powershell PGP and SFTP

Avatar of Twhite0909
Twhite0909 asked on
PowershellScripting Languages
1 Comment1 Solution358 ViewsLast Modified:
I want to use Powershell to write a script that will check a directory for all .csv files, encrypt them using PGP then send them via SFTP.

The folder will get 3 new .CSV files everyday.  The naming convetion for each will remain the sam excetp the date will change so it will look like this:

FinaceMM04182017.csv
FinanceMH040182017.csv
FinanceImages040182017.csv

I need the the script to do the following:

1. Look in a directory lets say "D:\Client\Folder1\" which will contain a the 3 files above but would require some sort of * or wildcard to grab the beginning letts but account for the changing numericals.

2. Use PGP to encrypt each .CSV and turn it into .PGP

3. Send the .PGP to an SFTP site

My director LOVES RoboFTP for some reason so Id like to try and get a similar script via Powershell to show it can be done.

Can it?
ASKER CERTIFIED SOLUTION
Chris Dent
PowerShell Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2010

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros