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:
- Open
gpmc.msc
, select the GPO to which you will add the policy. - Navigate Computer Configuration, Policies, Administrative Templates, Windows Components, Windows Installer.
- Set the policy "Prohibit User Install" to "Enabled".
- [Optional] Set the policy "User Install Behavior" to "Hide User Installs".
Solution 2:
- Open the Group Policy Management Console (GPMC).
- Right-click your domain and choose the Create a GPO in this domain, and link it here option.
- Name the Group Policy Object (GPO) Block Google Chrome and click OK.
- Right-click the policy you just created and click Edit.
- Navigate to the User Configuration\Policies\Windows Settings\Security Settings\Software Restriction Policies folder.
- Right-click Software Restriction Policies and select New Software Restriction Policies.
- Right click Additional Rules and choose New Path Rule.
- In the Path field, type chromesetup.exe.
- In the Security level drop-down box, choose Disallowed and click OK.
- Repeat steps 7 through 9 for the chrome.exe and gears-chrome-opt.msi files.
- 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.
-
Open a command-prompt window and run the command to apply the new rules.
gpupdate /force
-
Run the command
gpresult /R
Verify that the newly created GPO has successfully been applied. As a final test, attempt to run the installer from the Google Chrome website.