Click here to Skip to main content
15,890,579 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to Access WMI From Server 2008 to Windows XP Pin
priyapriyam27-Dec-08 0:26
priyapriyam27-Dec-08 0:26 
AnswerRe: How to Access WMI From Server 2008 to Windows XP Pin
Brij27-Dec-08 1:39
mentorBrij27-Dec-08 1:39 
AnswerRe: How to Access WMI From Server 2008 to Windows XP Pin
Dave Kreskowiak27-Dec-08 5:54
mveDave Kreskowiak27-Dec-08 5:54 
Questiondatagridview Pin
kulandaivel_mca200726-Dec-08 22:15
kulandaivel_mca200726-Dec-08 22:15 
AnswerRe: Crosspost Pin
Brij26-Dec-08 23:44
mentorBrij26-Dec-08 23:44 
GeneralRe: Crosspost Pin
kulandaivel_mca200727-Dec-08 0:02
kulandaivel_mca200727-Dec-08 0:02 
AnswerRe: datagridview Pin
Aman Bhullar27-Dec-08 23:00
Aman Bhullar27-Dec-08 23:00 
QuestionWMI "Access is Denied" Pin
priyapriyam26-Dec-08 20:52
priyapriyam26-Dec-08 20:52 
Hi All,

I am trying to test the success of WMI to check connectivity to a remote computer:
I have 2 computers:A,B Computer A: Windows Server 2008.Computer B: Windows XP SP2.They are all on the same network (a workgroup, not domain), with no firewalls in between (excepting Windows Firewall, which I have disabled on Computer B)

i wrote the following code.if local system means that code is working fine.Remotely means it show on Access Denied Error.How to Access WMI From Server 2008 to Windows XP.That remote connection Windows xp to Server 2008 Success.but Server 2008 to Windows Xp show on error like that access denied. Can Anyone help me?
Any help would be appreciated.

ConnectionOptions connection = new ConnectionOptions();
connection.EnablePrivileges = true;
ManagementScope scope = null;

//connection.Authority = "NTLMDomain:" + domain;
//connection.Username = userName;
//connection.Password = password;

//Local Machine

if (compName.ToUpper() == Environment.MachineName.ToUpper())
{
scope = new ManagementScope(@"\root\cimv2", connection);
}
else //Remote Machine
{
scope = new ManagementScope(@"\\" + compName + @"\root\cimv2", connection);
}

scope.Options.EnablePrivileges = true;
scope.Connect();

//

ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_OperatingSystem");
ManagementObjectSearcher objsearcher = new ManagementObjectSearcher(scope, query);
ManagementObjectCollection objcol = objsearcher.Get();
AnswerRe: WMI "Access is Denied" Pin
Dave Kreskowiak27-Dec-08 5:55
mveDave Kreskowiak27-Dec-08 5:55 
QuestionBase element load twice in TreeView, please help. Pin
Musa Biralo26-Dec-08 2:40
Musa Biralo26-Dec-08 2:40 
AnswerRe: Base element load twice in TreeView, please help. Pin
Not Active26-Dec-08 3:09
mentorNot Active26-Dec-08 3:09 
GeneralRe: Base element load twice in TreeView, please help. Pin
Musa Biralo26-Dec-08 3:21
Musa Biralo26-Dec-08 3:21 
GeneralRe: Base element load twice in TreeView, please help. Pin
Not Active26-Dec-08 3:45
mentorNot Active26-Dec-08 3:45 
GeneralRe: Base element load twice in TreeView, please help. Pin
Musa Biralo26-Dec-08 4:15
Musa Biralo26-Dec-08 4:15 
GeneralRe: Base element load twice in TreeView, please help. Pin
Musa Biralo26-Dec-08 4:18
Musa Biralo26-Dec-08 4:18 
GeneralRe: Base element load twice in TreeView, please help. Pin
Not Active26-Dec-08 4:59
mentorNot Active26-Dec-08 4:59 
Questiondatagridview using c# Pin
kulandaivel_mca200726-Dec-08 0:08
kulandaivel_mca200726-Dec-08 0:08 
QuestionRun .Net1.1 and 2.0 at same time Pin
Vince.Ro25-Dec-08 17:30
Vince.Ro25-Dec-08 17:30 
AnswerRe: Run .Net1.1 and 2.0 at same time Pin
Brij25-Dec-08 17:58
mentorBrij25-Dec-08 17:58 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Vince.Ro25-Dec-08 18:50
Vince.Ro25-Dec-08 18:50 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Abhijit Jana25-Dec-08 20:24
professionalAbhijit Jana25-Dec-08 20:24 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Vince.Ro25-Dec-08 22:42
Vince.Ro25-Dec-08 22:42 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Brij25-Dec-08 22:59
mentorBrij25-Dec-08 22:59 
GeneralRe: Run .Net1.1 and 2.0 at same time Pin
Vince.Ro28-Dec-08 13:44
Vince.Ro28-Dec-08 13:44 
QuestionInterface and GetType() - works in C# but not in VB? Pin
David Hovey25-Dec-08 12:37
David Hovey25-Dec-08 12:37 

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.