Re: Logon Failure
From: Paul Todd (reg_todd_at_hotmail.com)
Date: 10/06/03
- Next message: rexmac: ".NET WEB Service, MS SQL Server and Integrated Security"
- Previous message: Tony Baker: "Re: set Web Sharing via command line?"
- In reply to: Scott Wallace: "Logon Failure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 6 Oct 2003 15:05:21 +0100
Providing you will only be using one user at a time, you can use the WNet*
api's (e.g. WNetAddConnection2) to browse and access remote servers.
Paul
"Scott Wallace" <john@doe.com> wrote in message
news:OPABOcciDHA.1480@TK2MSFTNGP12.phx.gbl...
> I am trying to access a remote machine's files and can't figure out how to
> impersonate a user with rights to perform the task. The program runs as a
> Windows Service - this is NOT ASP, IIS, Web Service, etc. related -
strictly
> a Windows Service. The remote machine is on a different domain so I
cannot
> set my service to run as that user (same would apply to Web Service). How
> can I access a remote share if I know the user and password? Mapped
drives
> are not an option - there are about 80 remote machines that I need to talk
> to.
>
> Thanks,
> Scott
>
>
- Next message: rexmac: ".NET WEB Service, MS SQL Server and Integrated Security"
- Previous message: Tony Baker: "Re: set Web Sharing via command line?"
- In reply to: Scott Wallace: "Logon Failure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|