WMI question

  • Thread starter Thread starter BadMotherfucker
  • Start date 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?
 
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.
 
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)
 
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))
 
Back
Top