Setting Up System Policies - Foulest/Osprey GitHub Wiki
If you're installing Osprey on a locked-down computer and want to disable certain settings or features, here's how:
Chrome
Windows (Registry Editor)
- Open
chrome://extensions
, turn onDeveloper mode
, and copy Osprey's extension ID. - Open the Registry Editor and navigate to
HKLM\SOFTWARE\Policies\Google\Chrome\3rdParty\Extensions\<extensionID>\policy
. Make sure to replace the ` field with the ID you copied in the previous step. If this key doesn't exist, which it likely doesn't, you need to create it manually. - Right-click the background and click
New >
and thenDWORD (32-bit Value)
. Input the name of the key you want to add. The available keys and their descriptions can be found in the policies.json file. - If the key is a
boolean
, setting theValue data
to0
means false, and1
means true. If the key is aninteger
, set theValue data
to your desired number and make sure to change theBase
toDecimal
. - Reload Osprey in
chrome://extensions
to apply your changes.
Windows (Group Policy)
...
Mac
...
Linux
...
Edge
Windows (Registry Editor)
- Open
edge://extensions
, turn onDeveloper mode
, and copy Osprey's extension ID. - Open the Registry Editor and navigate to
HKLM\SOFTWARE\Policies\Microsoft\Edge\3rdParty\Extensions\<extensionID>\policy
. Make sure to replace the ` field with the ID you copied in the previous step. If this key doesn't exist, which it likely doesn't, you need to create it manually. - Right-click the background and click
New >
and thenDWORD (32-bit Value)
. Input the name of the key you want to add. The available keys and their descriptions can be found in the policies.json file. - If the key is a
boolean
, setting theValue data
to0
means false, and1
means true. If the key is aninteger
, set theValue data
to your desired number and make sure to change theBase
toDecimal
. - Reload Osprey in
chrome://extensions
to apply your changes.
Windows (Group Policy)
...
Mac
...
Linux
...
Firefox
Windows (Group Policy)
...
Windows (policies.json)
Note: This method will not work if Firefox is already being managed using Group Policy.
- Navigate to the directory where Firefox is installed in your File Explorer.
- Create a folder named
distribution
if it doesn't already exist. - Create a text file titled
policies.json
and place it into thedistribution
folder. - Modify the template below to your liking, and save the file. Ensure that you validate it using https://jsonlint.com.
{
"policies": {
"3rdparty": {
"Extensions": {
"[email protected]": {
"adminSettings": {
"DisableNotifications": true/false,
"DisableContextMenu": true/false,
"HideContinueButtons": true/false,
"HideReportButton": true/false,
"LockProtectionOptions": true/false,
"DisableClearAllowedSites": true/false,
"IgnoreFrameNavigation": true/false,
"CacheExpirationSeconds": 60 - 2592000 (default is 86400)
}
}
}
}
}
}
Mac (policies.json)
- Navigate to the
Firefox.app/Contents/Resources
directory. - Create a folder named
distribution
if it doesn't already exist. - Create a text file titled
policies.json
and place it into thedistribution
folder.
TODO: Finish and validate this on a Mac installation.
Linux (policies.json)
- Navigate to the directory where Firefox is installed in your File Explorer.
- Create a folder named
distribution
if it doesn't already exist. - Create a text file titled
policies.json
and place it into thedistribution
folder.
TODO: Finish and validate this on a Linux installation.