MSNdis_StatusMediaDisconnect problem

R

\Rob\

Anybody?

VB.net code below generates "Access denied" on XP SP2 with No firewall (this
code works fine on Windows Server 2003)

dim mew as ManagementEventWatcher= New
ManagementEventWatcher("\\ws1\root\WMI", "SELECT * FROM
MSNdis_StatusMediaDisconnect")
AddHandler mewDISCONNECT.EventArrived, AddressOf MediaDisconnectHandler
mewDISCONNECT.Start()
 
R

\Rob\

I forgot to mention wmidiag reports no problems and the below VB script is
successful.....

Set o = GetObject("winmgmts:\\.\root\wmi")
Set d = o.ExecNotificationQuery ("Select * from
MSNdis_StatusMediaDisconnect")
Do While True
Set e = d.NextEvent
WScript.Echo e.InstanceName
Loop

Strange thing is this XP machine has a VPN in "Network connections" along
with a standard NIC to the Internet. "Access denied" occurs when the VPN is
connected. "RPC Server unavailable" when VPN is not connected. "RPC Server
unavailable" occurs on another XP box with no VPN.
 
M

Manbinder Pal Singh [MSFT]

Please try cnfiguring your remote machine as per
http://msdn2.microsoft.com/en-us/library/aa389290.aspx and then see if it
works.
RPC error comes when you dont have DCOM access
and acccess of deined errors can come when a user is not allowed to connect
to the WMI namespace.

Try above and see if it works.

Thanks,
Manbinder Pal Singh

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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