Reputation: 31
I have java application which needs run dynamically through the power shell with my WCF c# application. I have tried the following command
System.Diagnostics.Process.Start("powershell.exe", strCmd + " ; timeout 50");
But still I am unable to succeed could tell me how can I do it
Upvotes: 0
Views: 829
Reputation: 65461
There are several Things that could be wrong here:
Having said that, this is not a good idea, you are opening Your machine to attackers to run any PowerShell script they want.
Upvotes: 1