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...
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...
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...
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...
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...
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...
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 :)
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.