C# Using CredWrite to Access C$

前端 未结 1 1129
小蘑菇
小蘑菇 2021-01-03 05:02

I\'m trying to access the C$ of a server with a domain account that does not have right\'s to that server. I need to save the the credentials in the form of a local log in f

相关标签:
1条回答
  • 2021-01-03 05:27

    The problem is resolved and the above code is now fully functional. The issue had to do with GetNativeCredential it was not using the values that were assigned to cred in the WriteCred method but rather some static ones that had been set up.

    Also, the way I was inputting the information into the WriteCred method was incorrect. The code above has been fixed so that it is fully functioning.

    0 讨论(0)
提交回复
热议问题