cipher tool with an imporsonated user

  • Thread starter Thread starter groovy
  • Start date Start date
G

groovy

Hello,

I'm using Windows XP Pro (SP2) and I'd like to encrypt a folder using
the tool cipher.exe but using the credentials of a particular user
different than the user logged in.

I'm trying it impersonating the user first with the API Advapi32 /
LogonUser , using diferent value for the parameters "Logon Type" and
"Logon Provider".

After impersonating the correct user i execute the command: cipher.exe
/E /S:c:\test /A

but the folder is encrypted related to the user logged in in the
session, no with the impersonated user.

I have tried too with the API Advapi32 / CreateProcessWithLogonW, with
the option "Logon with profile", but i don't get to work,

is it posible?, any idea?

Thanks and best regards,
Raul Truco
 
You may also want to post your question in Microsoft.public.security.crypto
newsgroup. --- Steve
 
Back
Top