473,509 Members | 2,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Remote server authentication...

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
2 1645
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5214
by: Jacob | last post by:
Hello All, I am trying to serve out some content via IIS that is hosted on a remote fileserver, and am unable to get the delegation working correctly. Our setup is as follows: Local LAN...
2
8194
by: obeOnline | last post by:
I'm getting the following error... System.Net.HttpWebRequest.CheckFinalStatus() +676 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139...
0
1692
by: Michael Höhne | last post by:
Hi, we're developing some web services and use the local development server of Visual Studio 2005 to create, run and debug the project. The web service methods connect to a database hosted on a...
1
6868
by: Chris | last post by:
hi I have big problem. I am writing a small win application. It will work on remote MS SQL database (2005). Firstly, I need to log on to the server. The server supports remote connections and sql...
2
2089
by: brian.newman | last post by:
I've got an app which provides data based on the user who is logged in. So, I need the user data to be on the same db server as the other data. I'm trying to do this using the membership API. ...
0
1508
by: fred64 | last post by:
Hello , I fought very hard and succeed to do a remote debug from a client with VS2003 on XP HOME to a Server with XP PRO. This is on a Workgroup : I created same user/pwd with admin rights...
4
2296
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
When I start the Visual Studio .NET 2005 on client machine, I select Tools and database connection (Database: SQL Server, security: windows authentication. Server: Server Machine name (not in the...
5
17658
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hello! I'm trying to copy a file from another computer on the network that I do not have permission with my current logon details to access. If I open the folder using the Windows file manager...
3
6610
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
2
5399
by: krishnakrish | last post by:
Hi, My name is krishna. I am using asp.net 2.0 with C#. I amusing Windows XP professional as OS. When I post some data to an external web server I get the error as "The Remote server returned an...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.