There are a couple of things you need to do:
1) if you have not prepared the machines for remote WMI connections, here is a great link: http://msdn.microsoft.com/en-us/library/aa389286(VS.85).aspx .aspx)
2) also, you will need to specify the ConnectionOptions.Authority value as NTLMDOMAIN or Kereberos or else it, by default of a null value, points to the workstation on which the ASP worker process runs. Here is a link with those details: http://msdn.microsoft.com/en-us/library/system.management.connectionoptions.authority.aspx
3) Lastly, make sure you add the scope object to the ManagementSearcherObject override when you get to the point of querying. That last one eluded me for a few days.
I've got some very detailed notes on how I did it on a few blog posts: http://learningpcs.blogspot.com/2009/08/aspnet-wmi-query-preparing-to-connect.html
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).