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 use a Windwos XP Professional client computer named Certkiller -WS536 as your development computer.
You are developing a .NET Framework 2.0 application on Certkiller -WS536. You create an assembly that implements a custom security object.
The assembly resides in the CKPerm.exe file. The CKPerm.exe references the classes in the BasePerm.exe assembly.
You are required to write a script that will be used to add the assembly to the full trust assembly list of the currently logged on user whilst the user
will never have write access to the machine policy file.
What should you do? (Choose two)

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You use a Windwos XP Professional client computer named Certkiller -WS536 as your development computer.
You are developing a .NET Framework 2.0 application on Certkiller -WS536. You create an assembly that implements a custom security object.
The assembly resides in the CKPerm.exe file. The CKPerm.exe references the classes in the BasePerm.exe assembly.
You are required to write a script that will be used to add the assembly to the full trust assembly list of the currently logged on user whilst the user
will never have write access to the machine policy file.
What should you do? (Choose two)

A.
Run the caspol -addfulltrust CKPerm.exe command.

B.
Run the caspol -addfulltrust BasePerm.exe command.

C.
Run the caspol -enterprise -addfulltrust BasePerm.exe command.

D.
Run the caspol -enterprise -addfulltrust CKPerm.exe command.

E.
Run the caspol -machine -addfulltrust BasePerm.exe command.

F.
Run the caspol -machine -addfulltrust CKPerm.exe command.

Explanation:
The caspol.exe tool is used to allow you to modify the code access security policy at the user level, machine level as well as the enterprise level and using the -addfulltrust option adds an assembly that implements a custom security object to a list of fully trusted assemblies.

Incorrect Answers:
C, D, E, F: In the event that there is no policy level specified the caspol.exe tool checks
if the user has write permission to the machine policy file if so the machine level security policy will be used other wise the user-level policy will be used.



Leave a Reply 1

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