Hi. I am trying to write a VB.NET windows service to go through a
constantly changing list of servers (could be win2000, win2003 or even XP),
connect and authenticate to these servers, pull info like wmi, event logs,
files within shares, etc. and then disconnect.
The problem I am having is this is a service running as the system account.
I need a programmatic way to authenticate to the server from the list, do my
information polling and then disconnect.
What methods can I use to authenticate?
The source list of servers (that again will be changing all the time) will
contain the server name, ip address, domain, administrative user name and
password.
I've tried several ideas such as the system.management namespace to connect
but that doesn't work for accessing files within shares.
What is a good way to simply "log on" to these servers (the accounts used to
log on will be full administrators of those servers) so that the connection
will have full access to wmi, registry, shares, etc. I'll do my
information pulling and then close the connection.
Please let me know with any ideas you might have.
Thank you very much.
-Spock