What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a Windows Service application. You need to change the security context in which the service runs.
The service will be run in context of a non-privileged user on the local computer and present anonymous credentials to any remote server.
You are required to set the Account property of the ServiceProcessInstaller class to specify the service account.
What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a Windows Service application. You need to change the security context in which the service runs.
The service will be run in context of a non-privileged user on the local computer and present anonymous credentials to any remote server.
You are required to set the Account property of the ServiceProcessInstaller class to specify the service account.
What should you do?

A.
Use ServiceAccount.User.

B.
Use ServiceAccount.LocalService.

C.
Use ServiceAccount.LocalSystem.

D.
Use ServceAccount.NetworkService.

Explanation:
The proper way to complete the operation is to use the ServiceAccount.LocalService as the value of the Account property of the ServiceProcessInstaller class, setting this value will run the service in context of the non-privileged user on the local computer.
Incorrect Answers:
A: This method should not be used as you will be specifying the service to run in the security context of a specified user account.
C: This method should not be considered as you will run the service in the security context of a highly privileged user account.
D: The scenario requires the service to run in the security context of a non-privileged user on the local system not the network.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


networkmanagers

networkmanagers

B