WMI question

  • Thread starter BadMotherfucker
  • Start date
B

BadMotherfucker

Hello,

I have the following code:
------------------------------------
oms = New System.Management.ManagementScope("\\" + mycomputer.Computername +
"\root\cimv2")
oms.Connect()
------------------------------------
My program is running with an account that has Domain Admin priveliges.
I want to connect to another computer using these credentials.
The above code doesn't work, the program always connect to the computer
where the program is running. (Although mycomputer.computername is correct)

What am I doing wrong?
 
O

One Handed Man \( OHM - Terry Burns \)

What happens when you ping myComputer.Computername, does this give you the
correct IP address of the target machine ?, if not check your DNS/WINS or
Hosts file.

PS : Please change your name, we dont really want that kind of filth in the
newsgroup.
 
B

B@d

What happens when you ping myComputer.Computername, does this give you the
correct IP address of the target machine ?, if not check your DNS/WINS or
Hosts file.

pinging, connecting with other wmi tools all works

(PS, changed my name)
 
O

One Handed Man \( OHM - Terry Burns \)

What happens if you try this in a browser ?

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top