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
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.