Share via

CryptUnprotectData (dpapi.h) fails when used with VDI setup

Sudheendra Subbarao 6 Reputation points
2022-08-30T09:50:23.76+00:00

We are using CryptProtectData to protect our file using CRYPTPROTECT_LOCAL_MACHINE as the dwFlags parameter. This flag associates the data encrypted with the current computer instead of with an individual user.
We are decrypting the file using CryptUnprotectData which uses the same flag as above to unprotect the file.

This works fine on a physical windows machine.

When we try the same on a VMWare related VDI setup, it works fine as long as the user does not log out. The moment user logs out and logs in again, the CryptUnprotectData fails.
We are using VDI with Non persistent Instant Clone setup.

Any help on this would be highly appreciated.

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

1 answer

Sort by: Most helpful
  1. RLWA32 52,571 Reputation points
    2022-08-30T10:35:09.4+00:00

    This works fine on a physical windows machine.

    It seems to me that you should be pursuing your question with VMware support.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.