Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to start the notepad.exe on remote machine which is desktop interactive.

What I have tried:

I have tried win32.SheduleJob but it show error "Invalid Parameter".

C#
bjectGetOptions objectGetOptions = new ObjectGetOptions();
ManagementPath managementPath = new ManagementPath("Win32_ScheduledJob");
ManagementClass classInstance = new ManagementClass(scope, managementPath,
                                                    objectGetOptions);
object[] theProcessToRun = { "notepad.exe" };
ManagementBaseObject inParams = classInstance.GetMethodParameters("Create");
Posted
Updated 19-Jan-17 22:28pm
v2

1 solution

Would you want websites launching processes on your machine? This is obviously impossible for security reasons.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900