I'm trying to reach a remote computer via c$ style fs.readFileSync("\\\compName\c$\myFolder\myFile.txt")
in nodeJs fs module.
This will work only if I first manually open the folder, enter user authentication and check the "remember my credentials" checkbox.
My question is: is there a way to enter the authentication in the code?
Assuming, that creating an admin share is not an option, since I'm trying to reach many computers, and I want an easy way to run this on multiple VM's.
Thanks, mordicool.
via mordicool
No comments:
Post a Comment