Commit fa8adb6a authored by Christof Schulze's avatar Christof Schulze 😎
Browse files

Firefox: Institute policy added

parent 40b43475
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2,3 +2,16 @@

## Registry Files

## Features

### PowerShell-scripts

  By default execution of Powershell-Scripts is forbidden.


  To allow PowerShell-Scripts to be executed only for the Admin,
  execute once as Janitor (run as Administrator):

  ```
  Set-ExecutionPolicy unrestricted -Scope CurrentUser
  ```

Software/README.md

0 → 100644
+17 −0
Original line number Diff line number Diff line
# Preconfigure Software


## Firefox

### GPOs
Firefox can be preconfigured with GPOs [GPO-Template](https://github.com/mozilla/policy-templates/tree/bec1a5bbbaf0e3936f439a139f661d96a6b51a51).


### Policies
Or by a single file which is stored in a `distribution/policies.json`,

  on Windows: `C:\Program Files\Mozilla Firefox\distribution`

  on Linux: `/usr/lib64/firefox/distribution/`

This policies.json can be created with a Firefox-Extension [enterprise-policy-generator](https://addons.mozilla.org/en-US/firefox/addon/enterprise-policy-generator/)

Software/firefox.ps1

0 → 100644
+29 −0
Original line number Diff line number Diff line
#
#  Install Firefox policies.json
#


$policy_file = ".\policies.json"

$firefox_folder = "C:\Program Files\Mozilla Firefox"

$DistributionDirectory = "$firefox_folder\distribution"


if ( Test-Path -Path $firefox_folder -PathType Container ) {

  if (-not (Test-Path -LiteralPath $DistributionDirectory )) {

      try {
          New-Item -Path $DistributionDirectory  -ItemType Directory -ErrorAction Stop | Out-Null #-Force
      }
      catch {
          Write-Error -Message "Unable to create directory '$DistributionDirectory '. Error was: $_" -ErrorAction Stop
      }
      #"Successfully created directory '$DistributionDirectory'."

  }
  #"'$DistributionDirectory' exists"
  Copy-Item $policy_file $DistributionDirectory -force

}

Software/policies.json

0 → 100644
+44 −0
Original line number Diff line number Diff line
{
  "policies": {
    "BlockAboutConfig": true,
    "BlockAboutProfiles": true,
    "CaptivePortal": false,
    "Certificates": {
      "ImportEnterpriseRoots": true
    },
    "DisableFirefoxAccounts": true,
    "DisableFirefoxStudies": true,
    "DisablePocket": true,
    "DisableSetDesktopBackground": true,
    "DisableTelemetry": true,
    "EnableTrackingProtection": {
      "Value": true
    },
    "Extensions": {
      "Install": [
        "wikipedia-de",
        "d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d"
      ]
    },
    "FlashPlugin": {
      "Default": false
    },
    "Homepage": {
      "StartPage": "previous-session",
      "URL": "http://www.matsim.techfak.uni-erlangen.de/"
    },
    "OverrideFirstRunPage": "",
    "OverridePostUpdatePage": "",
    "SearchEngines": {
      "Default": "DuckDuckGo",
      "PreventInstalls": false,
      "Remove": [
        "Bing",
        "Amazon.co.uk",
        "eBay",
        "Twitter",
        "Chambers (UK)"
      ]
    }
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ Get-AppxPackage -Name Microsoft.OfficeLens | Remove-AppxPackage
Get-AppxPackage -AllUsers -Name Microsoft.YourPhone  | Remove-AppxPackage
Get-AppxPackage -AllUsers -Name *WindowsPhone* | Remove-AppxPackage
Get-AppxPackage -AllUsers -Name *commsphone* | Remove-AppxPackage

Get-AppxPackage -Name *phone* | Remove-AppxPackage

# Calendar and Mail apps together:
Get-AppxPackage -AllUsers -Name *communicationsapps* | Remove-AppxPackage