I’m a developer and work at a organization where sometimes I need to give users temporary admin access in their workstations.
For this purpose I developed a windows service that reads a configuration file (with parameters for user permissions) then runs the ‘net user’ command to allow or disable admin access.
The program is compiled and published as a Windows Installer file just fine. But when I install the program on the user’s computer all Avast Pro/Free/Endpoint detect the executable as a virus.
This behavior forced me to create an exception in the File Shield.
My question: why is my program detected as a virus to begin with?