windows - Assistance with updating a group of Linux machines from a Powershell script or some other script -


i know can use putty ssh each linux machine , update centos servers...but i'm hoping can point me in right direction on how can perhaps powershell or other scripting language within windows.

we use batchpatch patching our windows machines...works charm. we've been adding linux machines mix , i'd continue use batchpatch task. batchpatch not have ability talk linux (no ssh support)...but batchpatch allow me execute scripts i'm going test out running script against each machine listed in batchpatch view.

what i'm looking through windows script connect linux machine , issue commands patch "yum upgrade". have common user added each of our linux machines can execute script using account (and account has nopasswd sudoer access should able execute sudo instructions in script without having type in password during running of script). have example of script or can point me script me started in testing of task?

thank in advance advice can provide.

if want execute 1 line script, easiest solution plink.exe. read here it, included putty packet: https://cmatskas.com/run-ssh-with-powershell/

if want more control in ssh session, can use pos-ssh powershell module. https://github.com/darkoperator/posh-ssh


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -