I am trying to call tpmvscmgr.exe located in C:\Windows\System32 from my c# application. I found this code:
string strCmdText;
strCmdText = @"/C Robocopy C:\Users\Johannes\test1 C:\Users\Johannes\test2";
System.Diagnostics.Process.Start("CMD.exe", strCmdText);
here Run Command Prompt Commands and it works good.
However when I try to change it to
strCmdText = "/C Tpmvscmgr.exe create /name tpmvsc /pin default /adminkey random /generate ";
This does not work. In fact when I debug and look around in the command prompt opened by the code I can not find the tpmvscmgr.exe in windows/system32. Im guessing it is opened as a different user or with other priviledges or something but can this be fixed? I really would need to run a tpmvscmgr.exe command from code.