By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,725 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Remote server authentication...

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Spock" <sp*******@yahoo.com> wrote in
news:#w**************@TK2MSFTNGP12.phx.gbl:
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?


What you need to do is impersonation:

http://support.microsoft.com/kb/306158/EN-US/

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2

P: n/a
By the way, Thank you for the URL you provided.

I was able to do what I needed from that.

Thanks!
-Spock
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"Spock" <sp*******@yahoo.com> wrote in
news:#w**************@TK2MSFTNGP12.phx.gbl:
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?


What you need to do is impersonation:

http://support.microsoft.com/kb/306158/EN-US/

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.