I\'m having a problem to execute powershell commands from the C# application.
I\'ve found many things related to this issue, but none of them helped me to figured it out what mi
How are you compiling your C# application? If it is compiled as x86 platform then it will be using the virtualized System32 dir C:\windows\syswow64 and there is no msg.exe in that dir. You can either A) compile as x64 or B) use the path C:\windows\sysnative\msg.exe.