I'm making an application where I have to enable and disable the UWF in Windows 10. But I want to intercept the success or failure, the problem is that when I only displays a letter.
string output = string.Empty;
        string error = string.Empty;
        ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd", "/c uwfmgr.exe volume protect c:");
        processStartInfo.RedirectStandardOutput = true;
        processStartInfo.RedirectStandardError = true;
        processStartInfo.UseShellExecute = false;
        processStartInfo.Verb = "runas";
        Process process = Process.Start(processStartInfo);
        using (StreamReader streamReader = process.StandardOutput)
        {
            output = streamReader.ReadToEnd();
        }
        using (StreamReader streamReader = process.StandardError)
        {
            error = streamReader.ReadToEnd();
        }
        if (!string.IsNullOrEmpty(error))
        {
            MessageBox.Show("Error: " + error);
            return;
        }
        MessageBox.Show("OK: " + output);
Here comes the message box "OK U"
Thanks
 
    