File tree Expand file tree Collapse file tree 6 files changed +501
-466
lines changed Expand file tree Collapse file tree 6 files changed +501
-466
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function Test-FirefoxPreconfiguration
34
34
}
35
35
36
36
$return = @ ()
37
- if (-not (Test-FirefoxPreference @fileNameParam ))
37
+ if (-not (Test-FirefoxPreference @fileNameParam ))
38
38
{
39
39
Write-Verbose - Message ' Firefox "GeneralConfigurationFile" preference not set to Mozilla.cfg'
40
40
$return += ' filename'
@@ -91,20 +91,20 @@ function Test-ConfigStartWithComment
91
91
. SYNOPSIS
92
92
Configures firefox preconfiguration requirements.
93
93
94
- . PARAMETER Preconfigs
94
+ . PARAMETER Preconfiguration
95
95
Array of which preconfigurations need to be set.
96
96
97
97
. PARAMETER InstallDirectory
98
98
Directory where FireFox is installed.
99
99
#>
100
- function Set-FirefoxPreconfigs
100
+ function Set-FirefoxPreconfiguration
101
101
{
102
102
[CmdletBinding ()]
103
103
param
104
104
(
105
105
[Parameter (Mandatory = $true )]
106
106
[string []]
107
- $Preconfigs ,
107
+ $Preconfiguration ,
108
108
109
109
[Parameter (Mandatory = $true )]
110
110
[string ]
@@ -116,7 +116,7 @@ function Set-FirefoxPreconfigs
116
116
New-Item - Path $autoConfigPath - Type File
117
117
}
118
118
119
- switch ($Preconfigs )
119
+ switch ($Preconfiguration )
120
120
{
121
121
' filename'
122
122
{
@@ -431,7 +431,7 @@ function Format-FireFoxPreference
431
431
432
432
switch ($Value )
433
433
{
434
- {[bool ]::TryParse($Value , [ref ]$null ) }
434
+ { [bool ]::TryParse($Value , [ref ]$null ) }
435
435
{
436
436
$result = $Value ; break
437
437
}
Original file line number Diff line number Diff line change @@ -92,13 +92,13 @@ function Set-TargetResource
92
92
93
93
if (-not (Test-Path - Path $InstallDirectory ))
94
94
{
95
- throw - Message " $InstallDirectory not found. Verify Firefox is installed and the correct Install Directory is defined."
95
+ throw " $InstallDirectory not found. Verify Firefox is installed and the correct Install Directory is defined."
96
96
}
97
97
98
98
$preconfigs = Test-FirefoxPreconfiguration - InstallDirectory $InstallDirectory
99
99
if ($preconfigs )
100
100
{
101
- Set-FirefoxPreconfigs - Preconfigs $preconfigs - InstallDirectory $InstallDirectory
101
+ Set-FirefoxPreconfiguration - Preconfiguration $preconfigs - InstallDirectory $InstallDirectory
102
102
}
103
103
104
104
if (-not (Test-Path - Path " $InstallDirectory \Mozilla.cfg" ))
Original file line number Diff line number Diff line change @@ -28,10 +28,14 @@ The default is x86.
28
28
29
29
### MSFT_xFirefoxPreference
30
30
31
- * ** PreferenceType** : Specify the type of Preference E.g. lockPref.
31
+ * ** PreferenceType** : Specify the type of Preference { Pref | lockPref | defaultPref | unlockPref | clearPref }
32
+ Specifies the preference type of the Firefox Preference to be configured
32
33
* ** PreferenceName** : Specify the name of the Preference.
34
+ Specifies the name of the Firefox Preference to be configured
33
35
* ** PreferenceValue** : Specify the value of the Preference.
36
+ Specifies value of the Firefox Preference to be configured
34
37
* ** InstallDirectory** : Specifies the location where Mozilla Firefox is installed.
38
+ Specifies the directory where Firefox is installed
35
39
36
40
## Versions
37
41
You can’t perform that action at this time.
0 commit comments