Powershell Script to Execute SSH Commands

Powershell based script which can connect SSH based devices (network, Linux/Unix based devices) and execute any set of commands.

It will then take the output and save in multiple txt files.

Testing scenario

  • Backup of 20 Network Device Configuration
    • Took less than 10 Seconds per device
    • Output was saved in multiple text files (each named as device’s hostname)
    • Created separate list of failed devices
    • No special configuration required on device

Link to the Powershell Script

2 thoughts on “Powershell Script to Execute SSH Commands

  1. But can you please tell me how to send enable password also as my router and switches have enable password as well and not able to execute anything without entering another enable password ..

Leave a Reply

Your email address will not be published. Required fields are marked *