Skip to content

Instantly share code, notes, and snippets.

@c1982
Created May 28, 2013 13:36
Show Gist options
  • Save c1982/5662805 to your computer and use it in GitHub Desktop.
Save c1982/5662805 to your computer and use it in GitHub Desktop.
GetPleskPassword(); Tested for Plesk 8.6
public string GetPanelPassword()
{
var plesksrvclient_exe = Path.Combine(Environment.GetEnvironmentVariable("plesk_bin", EnvironmentVariableTarget.Machine),"plesksrvclient.exe");
CoreHelper.Exec(plesksrvclient_exe, "-get -nogui");
return System.Windows.Forms.Clipboard.GetText();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment