Accessing file on another computer with Authentication

Hi All,

I want to access a file on another computer using a UNC Path in a Win PE Task Sequence environment. The UNC path looks something like this : '\\<computer name>\source\counter.txt'.

My problem is that if the default authentication fails, I want to provide a username and password that can access the said file.

Basically, what I want to do is access a text file on another computer and read / write to that file.

How do I set up my authentication if it requires additional authentication (ex. Username and Password of a user in that computer)?

Thank you very much!
Hi,

I just found out the answer to my question. What I did was map a network drive using Wnetaddconnection2 and then access the file. After accessing the file, I close the connection.

Just want to share.

Thanks!
Topic archived. No new replies allowed.