Change Linux User password using Powershell

Sounds strange but yes it is possible ๐Ÿ™‚ Just one module and some lines of Powershell code and thats it.

 Import-Module SSH-Sessions $old_passwd = "vmware" $new_passwd = "VMware1!" New-SshSession -ComputerName IP-ADDRESS -Username admin -Password $old_passwd $result = Invoke-SshCommand -ComputerName IP-ADDRESS -Command "printf '%s\n' $old_passwd $new_passwd $new_passwd | passwd" Write-Host $result Remove-SshSession -RemoveAll