C# windows service network credentials

Fouad Allali 0 Reputation points
2023-11-26T22:10:47.9833333+00:00

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.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,146 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,074 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,620 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,312 questions
{count} votes