When using regasm
and caspol
to register and grant trust to assemblies, will it matter under which user account these utilties are executed?
Could there arise a situation where assemblies are registered and/or granted trust only for certain users on a machine or domain?
I believe Regasm must be run by an administrator.
Therefore, whatever is done with Regasm will be done for all users. So no, when using regasm there won't be a situation where assemblies are registered only for certain users on a machine or domain.
Caspol can be run by users other than administrators.
A list of the Security Policy Levels, shows the variations.
Therefore, Caspol allows user and machine specific security policies, and the type of user running Caspol will have an impact on what can be achieved. So yes, when using Caspol there can be a sitation where assemblies have a different security policy based on machine and user.