Credential Provider related Unit Test Failure on Windows. Contributed by Xiaoyu Yao.

(cherry picked from commit 302d9a0a0dac721775a88f804a18d5224c0cd497)