Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Batch Insert Problem with SqlBulkCopy. Pin
hdv2125-Jun-09 0:41
hdv2125-Jun-09 0:41 
AnswerRe: Batch Insert Problem with SqlBulkCopy. Pin
I Believe In GOD5-Jun-09 2:04
I Believe In GOD5-Jun-09 2:04 
QuestionHow to install Microsoft.mshtml.dll in GAC Pin
svt gdwl4-Jun-09 22:28
svt gdwl4-Jun-09 22:28 
AnswerRe: How to install Microsoft.mshtml.dll in GAC Pin
Christian Graus4-Jun-09 23:05
protectorChristian Graus4-Jun-09 23:05 
QuestionWMI Pin
arkiboys4-Jun-09 22:21
arkiboys4-Jun-09 22:21 
AnswerRe: WMI Pin
Pete O'Hanlon4-Jun-09 23:05
mvePete O'Hanlon4-Jun-09 23:05 
GeneralRe: WMI Pin
arkiboys4-Jun-09 23:49
arkiboys4-Jun-09 23:49 
GeneralRe: WMI Pin
arkiboys5-Jun-09 0:31
arkiboys5-Jun-09 0:31 
I have now been through the suggested settings.
Still get Access Denied.
I can however ping the remote machine but can not use the code.
Here is the code.
Not sure why I get the Access Denied error on th einvoke line.
Any thought please?
Thanks

string stringCommandLine = "notepad.exe";

System.Management.ManagementOperationObserver observer = new System.Management.ManagementOperationObserver();
System.Management.ConnectionOptions conn = new System.Management.ConnectionOptions();

conn.Impersonation = ImpersonationLevel.Impersonate;
conn.EnablePrivileges=true;
conn.Authentication=AuthenticationLevel.Default;

System.Management.ManagementScope ms = new System.Management.ManagementScope("\\\\" + "11.3.432.76" + "\\root\\cimv2", conn);

ms.Connect();

System.Management.ManagementPath path = new System.Management.ManagementPath("Win32_Process");

System.Management.ManagementClass processClass = new System.Management.ManagementClass(ms, path, null);

object[] methodArgs = { stringCommandLine, null, null, 0 };

processClass.InvokeMethod(observer, "Create", methodArgs);
QuestionUser Control Pin
User 62554644-Jun-09 21:14
User 62554644-Jun-09 21:14 
AnswerRe: User Control Pin
Christian Graus4-Jun-09 21:37
protectorChristian Graus4-Jun-09 21:37 
GeneralRe: User Control Pin
User 62554645-Jun-09 19:35
User 62554645-Jun-09 19:35 
Questionnon selectable cells/columns in datagridview Pin
Otex4-Jun-09 21:01
Otex4-Jun-09 21:01 
AnswerRe: non selectable cells/columns in datagridview Pin
dan!sh 4-Jun-09 23:12
professional dan!sh 4-Jun-09 23:12 
QuestiondataGrid SelectedIndexChanged Method not available in Compact Framework Pin
Paulo Mitchell4-Jun-09 20:27
Paulo Mitchell4-Jun-09 20:27 
AnswerRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
MickCurley5-Jun-09 0:16
MickCurley5-Jun-09 0:16 
GeneralRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
Paulo Mitchell5-Jun-09 3:18
Paulo Mitchell5-Jun-09 3:18 
GeneralRe: dataGrid SelectedIndexChanged Method not available in Compact Framework Pin
MickCurley5-Jun-09 4:05
MickCurley5-Jun-09 4:05 
QuestionBHO not gets injected? Pin
svt gdwl4-Jun-09 20:19
svt gdwl4-Jun-09 20:19 
AnswerThis is the error occured during installation Pin
svt gdwl4-Jun-09 21:14
svt gdwl4-Jun-09 21:14 
QuestionEquivalent C# 2.0 code Pin
Ankit Rajpoot4-Jun-09 18:56
Ankit Rajpoot4-Jun-09 18:56 
AnswerRe: Equivalent C# 2.0 code Pin
Christian Graus4-Jun-09 21:40
protectorChristian Graus4-Jun-09 21:40 
QuestionHow to type special character such as √ ,Π in C#? Pin
tannghia4-Jun-09 17:19
tannghia4-Jun-09 17:19 
AnswerRe: How to type special character such as √ ,Π in C#? Pin
Christian Graus4-Jun-09 17:32
protectorChristian Graus4-Jun-09 17:32 
QuestionAutoscroll DataGridview Control Pin
Member 20251764-Jun-09 16:07
Member 20251764-Jun-09 16:07 
AnswerRe: Autoscroll DataGridview Control Pin
Niladri_Biswas4-Jun-09 16:25
Niladri_Biswas4-Jun-09 16:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.