Re: Copy files over network



ManBoye wrote:

- Would it be feasible to use impersonation when the application starts
up?

Yes, it solved my problem (logging into a remote share and copying files over there). I can recommend this older thread for you:

http://tinyurl.com/frneq

- What special permissions are required on the client?

Nothing. I was able to impersonate a user on the remote computer, which was not even a user on the local (client) computer, although this particular feature requires XP (or W2k at the minimum).

- Will the impersonation user require permissions to the location on
the local client where the files are copied to?

I think the local computer will be fine. I never had a problem reading my file from the local computer after impersonation. However, my impersonated user was not even a user on the local machine. I just did

LogonUser
ImpersonateLoggedOnUser
CopyFile
RevertToSelf
CloseHandle

For the exact code, you might want to read the entire thread, it has some useful information.

Tom
.



Relevant Pages

  • Re: Error ID 7023
    ... The local computer may not have the necessary registry information or message ... DLL files to display messages from a remote computer. ...
    (microsoft.public.windows.server.general)
  • Re: Remote Assistance Ticket expires too soon
    ... This page has the information to extend the invitation time out to 99 days. ... Its a group policy setting... ... necessary to have someone at the remote computer and another operator at the ... Both want to see whats going on on the local computer at the ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Excessive entries in Event Viewer!
    ... remote desktop, saved the application log into a file, and i find the ... The local computer may not have the necessary registry ... information or message DLL files to display messages from a remote ... You may be able to use the /AUXSOURCE= flag to retrieve this ...
    (microsoft.public.windows.server.general)
  • Re: Create remote object with specified credentials.
    ... I finally have it authenticating to the remote server (which is a great ... > WindowsIdentity class to impersonate that user. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Remote Assistance Ticket expires too soon
    ... Al Jarvi (MS-MVP WindowsDesktop User Experience) ... necessary to have someone at the remote computer and another operator at ... Both want to see whats going on on the local computer at ...
    (microsoft.public.windowsxp.work_remotely)

Loading