how to disable a user to install program being domain user?

Solution 1:

If the users do not have local administrator access, you may simply disable per-user installations via Group Policy.

DisableUserInstalls is a machine policy which will block per-user installations. There is also an option for "hiding" existing per-user installed applications in favor of the per-computer installed versions.

To configure:

  1. Open gpmc.msc, select the GPO to which you will add the policy.
  2. Navigate Computer Configuration, Policies, Administrative Templates, Windows Components, Windows Installer.
  3. Set the policy "Prohibit User Install" to "Enabled".
  4. [Optional] Set the policy "User Install Behavior" to "Hide User Installs".

Solution 2:

  1. Open the Group Policy Management Console (GPMC).
  2. Right-click your domain and choose the Create a GPO in this domain, and link it here option.
  3. Name the Group Policy Object (GPO) Block Google Chrome and click OK.
  4. Right-click the policy you just created and click Edit.
  5. Navigate to the User Configuration\Policies\Windows Settings\Security Settings\Software Restriction Policies folder.
  6. Right-click Software Restriction Policies and select New Software Restriction Policies.
  7. Right click Additional Rules and choose New Path Rule.
  8. In the Path field, type chromesetup.exe.
  9. In the Security level drop-down box, choose Disallowed and click OK.
  10. Repeat steps 7 through 9 for the chrome.exe and gears-chrome-opt.msi files.
  11. Repeat steps 7 through 9 for the path C:\Users\%username%\AppData\Local\Google\Chrome\Application\chrome.exe for Vista machines or C:\Documents and Settings\%username%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe for XP machines. You should include this rule in case some of your users have already installed the browser. After you implement the GPO and the Group Policy settings refresh on those users' local machines, they'll no longer be able to successfully run Google Chrome.
  12. Open a command-prompt window and run the command to apply the new rules.

    gpupdate /force

  13. Run the command

    gpresult /R

  14. Verify that the newly created GPO has successfully been applied. As a final test, attempt to run the installer from the Google Chrome website.