Can I run RegAsm without being Administrator?

后端 未结 5 1256
醉话见心
醉话见心 2021-02-03 12:11

My coworker is trying to register some COM components (which I wrote) via RegAsm.exe and it says he needs Administrator privileges. His account has admin privileges but he is n

5条回答
  •  长发绾君心
    2021-02-03 12:22

    I am logged into an account that has Administrator privileges. But RegAsm.exe still says it needs Administrator privileges.

    [From some notes I have for Windows 2008 R2. Confirm on other Windows operating systems that support UAC. The following assumes that you are permitted to make changes to the Local Security Policy. ]

    In its default configuration, User Account Control (UAC) settings give the local Administrator full privileges, but restrict the privileges of other members of the Administrators group. To lift the UAC restrictions on other members of the Administrators group, do the following:

    1. Select Start -> All Programs -> Administrative Tools -> Local Security Policy.
    2. Select Local Policies -> Security Options.
    3. In the right panel, double-click the third entry from the bottom which reads User Account Control: Run all administrators in Admin Approval Mode.
    4. Click Disabled.
    5. Click OK to close the dialog and close the Local Security Policy configuration tool.
    6. Reboot the computer to complete this change to the UAC settings.

提交回复
热议问题