ConnectionInfo connectionInfo = new PasswordConnectionInfo(ip, port, userid, password); using (Renci.SshNet.SshClient client = new Renci.SshNet.SshClient(connectionInfo)) { client.Connect(); //What should I do here to open PowerShell var cmd = client.RunCommand("Get-Command"); lbl.Text = "Output: " + cmd.Result; client.Disconnect(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)