Search results for query: *

  1. A

    Best method to kill a thread

    Hello All, I have a windows service that creates and starts a separate thread to perform a WMI query to a remote computer. I must perform this query to several dozen computers to determine the status of each station (available for use, in use (somepne logged on), or down/powered off) This is...
  2. A

    stop or kill connection attempt after specified period of time

    Kulrom, I will read up on connection pooling. This may be the problem as you have mentioned. Thank you!
  3. A

    stop or kill connection attempt after specified period of time

    Kulrom, I followed your advice and converted my app to a service. After a bit of struggling i got it working as i wanted. Thank you very much for your help on this! my next challenge is memory. I have noticed that my app is now using more memory than it used to as a windows app. In fact, i'm...
  4. A

    stop or kill connection attempt after specified period of time

    kulrom, thanks for your help... again!! :) although i am planning to switch my application into a service in the future, it currently works as a desktop app. I am not sure what you mean by creating a windows service when my app is the one trying to make the connection. can you provide a small...
  5. A

    stop or kill connection attempt after specified period of time

    hi, i am trying to connect to a remote machine to find out if anyone's logged in to it using wmi's ManagementObjectSearcher object. I am successful in establishing the connection and getting the information i need from machines that are up and running. However, when i try to access a machine...
  6. A

    error using wmi to access username on remote machine

    after entering your suggestions, this is what my codes looks like... PrivateSub btnGetUserName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles btnGetUserName.Click Dim objWMIService As ManagementObject Dim opt As ConnectionOptions = New ConnectionOptions...
  7. A

    error using wmi to access username on remote machine

    Thank you for your assistance Kulrom. When i typed to code you provided, the intellisense in studio .net tells me that the managementobject does not support two parameters in the way you provided. it doesnt allow the opt parameter. what other way could i use to link the managementobject with...
  8. A

    error using wmi to access username on remote machine

    i am terribly sorry. The error i am getting appears to be in this line objWMIService = New ManagementObject(strPath) thank you for any help you be able to provide :)
  9. A

    error using wmi to access username on remote machine

    i am trying to get the username from a user logged in to a remote machine. I am trying to use wmi to obtain such info in the following sub: PrivateSub btnGetUserName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles btnGetUserName.Click Dim objWMIService As...
Back
Top