C# windows service network credentials
hello MS team,
i developed a windows service in C# using VS 2019 its task get ip address and send it in txt file to local driven of my computer, until now its run perfect.
but when i execute this windows service to other computer and change destination to protected local network access become denied, however vbscript run normaly and can copy any folder and files to same network with my acount already saved in this computer.
my question why windows service doesn't use the same account to grant access to network as vbscript ?
what is the best solution to solve this issue ?
thanks in advance.