0

Is it possible to write a powershell script that executes on my laptop and copy data from pki server back to my laptop.? If yes How would one proceed to do so? Right now all this is done manually. What kind of permissions would I need. I have all the passwords for rdp. could the credentials be passed on the successive machine and execute rdp connections? Please help :) Can you guys provide some resources.

connections diagram

Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89
  • Talk to your IT department to make it easier. If these hops are fore security reason, there will be no good trying to circumvent them. – Gerald Schneider Sep 14 '20 at 13:05
  • I already have access/credentials to accounts on these servers...can powershell do the rdp on my behalf. – cypherphage Sep 14 '20 at 14:53
  • 1
    I don't think you quite got Gerald's comment. – notjustme Sep 15 '20 at 04:59
  • can you please explain in detail....i am not circumventing them....I just want to automate the process that I already do manually – cypherphage Sep 16 '20 at 06:21
  • 1
    There are basically two reasons why you have to go through these hops. Reason 1: the environment just grew that way and nobody really thought about it. Reason 2: These hops are necessary as a security precaution and have been set up deliberately to prevent attacks on a highly sensitive system (which PKI definitely is). In that case you would circumvent security measures that have been put in place deliberately, which in the worst case could result in disciplinary action against you. Talk to your IT department, argue that this makes your work harder and work with them towards a better solution. – Gerald Schneider Sep 17 '20 at 05:53

1 Answers1

0

PowerShell could launch the RDP client (mstsc.exe) and begin the first session with saved credentials but it could not do the same thing on the next computer.

If you are able to use PowerShell Remoting instead of RDP, you could do a double or triple hop file copy from the server all via PowerShell.

Garrett
  • 1,638
  • 4
  • 15
  • 25