Hide All Remote Chocolatey Sources
Hide All Remote Chocolatey Sources
There are times when you want to use Chocolatey GUI in a read-only mode, meaning that you can view what packages are currently installed, but to not allow access to install any other packages. When this is enabled, Chocolatey GUI would change from showing the following:
to only showing a single “This PC” source:
Notice that the ChocolateyInternal
and chocolatey.licensed
sources are no longer displayed.
NOTE
This is a Chocolatey for Business feature, and will require install of the Chocolatey GUI Licensed Extension.
WARNING
In order for this change to take effect, it will be necessary to close and re-open Chocolatey GUI.
WARNING
It is not possible to use both the HideAllRemoteChocolateySources and the HideThisPCSource features at the same time. Doing this would effectively mean that there is nothing to display within the Chocolatey GUI Application. If both of these features are enabled at the same time, the HideAllRemoteChocolateySources feature takes precedence and only the This PC source will be displayed.
Resources
Below is a short video which shows this feature in action:
Example
This feature can be enabled, for the currently logged in user, by running the following command:
chocolateyguicli feature enable --name="'HideAllRemoteChocolateySources'"
This feature can be disabled, for the currently logged in user, by running the following command:
chocolateyguicli feature disable --name="'HideAllRemoteChocolateySources'"
Or, to enable/disable it globally at the machine level, run the following commands:
chocolateyguicli feature enable --name="'HideAllRemoteChocolateySources'" --global
chocolateyguicli feature disable --name="'HideAllRemoteChocolateySources'" --global
Default Value
The default value for this feature is disabled.
Availability
The ability to control this feature from the Chocolatey GUI Settings screen has existed since Chocolatey GUI v0.18.0.
The ability to control this feature from the command line using chocolateyguicli
has existed since Chocolatey GUI
v0.18.0.