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 for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Client for IT Pros | User experience | Other
Microsoft Security | Microsoft Authenticator
Developer technologies | C#
Developer technologies | 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.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.