Hi
I am trying to launch .appref-ms (Click once) application on remote machine using WMI but could not get success. The below code works fine if i try to run notpad.exe
ManagementPath pm = new ManagementPath(@"\server\root\cimv2:Win32_process"); ManagementClass processClass = new ManagementClass(pm);
//Get an input parameters object for this method
ManagementBaseObject inParams = processClass.GetMethodParameters("Create");
//Fill in input parameter values
inParams["CommandLine"] = @"C:\Documents and Settings\Start Menu\Programs\New\New App.appref-ms";
//Execute the method
ManagementBaseObject outParams = processClass.InvokeMethod("Create", inParams, null);