Re: Retaining local file system access while impersonating to access a remote drive

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 08/19/04


Date: Thu, 19 Aug 2004 15:24:28 -0500

Can you make the account that you are impersonating have the necessary
permissions on both machines? That seems like the most straightforward
approach.

Joe K.

"Daniel" <softwareengineer98037@yahoo.com> wrote in message
news:%23uFanIihEHA.2624@TK2MSFTNGP12.phx.gbl...
> Is it possible to retain local file system read, write, delete access
while
> impersonating for access to a remote drive in a different domain? I need
to
> be able to move files from a local computer to a remote computer. do i
have
> to copy them from the local computer to the remote computer then delete
them
> fromt the local computer after undo-ing the impersonation? Or is there a
way
> to retain access to both the local computer and the remote computer by
while
> impersonating the use that has access to the remote computer? The
File.Move
> requires read and write access to both the filesystem of the source and
the
> destination because it deletes the file from the source when it is copied
to
> the destination. My current solution is to impersonate, copy local to
> target, undo impersonation, delete locals. But i would like to be able to
> impesonate, move local to target, undo impersonation.
>
>



Relevant Pages


Loading