Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions scripts/ClientSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,16 @@ param(
[Hashtable[]]
$AdditionalPackages,

# Allows for the addition of alternative sources after the base conifguration has been applied.
# Allows for the addition of alternative sources after the base configuration has been applied.
# Can override base configuration with this parameter
[Parameter()]
[Hashtable[]]
$AdditionalSources
$AdditionalSources,

# Allows for the skipping of ChocolateyGUI installation.
[Parameter()]
[Switch]
$SkipChocolateyGUI
)

Set-ExecutionPolicy Bypass -Scope Process -Force
Expand Down Expand Up @@ -162,8 +167,10 @@ choco upgrade chocolatey.extension --confirm --source="'ChocolateyInternal'" --n
}
)

if (-not $SkipChocolateyGUI){
choco upgrade chocolateygui --confirm --source="'ChocolateyInternal'" --no-progress
choco upgrade chocolateygui.extension --confirm --source="'ChocolateyInternal'" --no-progress
}

choco upgrade chocolatey-agent --confirm --source="'ChocolateyInternal'"

Expand Down
11 changes: 8 additions & 3 deletions scripts/Register-C4bEndpoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Some endpoints may require a different set of features. The default installation will apply our _recommended_ configuration.
However, you can override these defaults or enable/disable additional features by providing the `-AdditionalFeatures` parameter.

In this example we will disable the use of the background service so non-admin users cannot use Chocolatey (not recommended), and enable Gloabl Confirmation so you no longer need to pass -y when performing a package operation.
In this example we will disable the use of the background service so non-admin users cannot use Chocolatey (not recommended), and enable Global Confirmation so you no longer need to pass -y when performing a package operation.

. .\Register-C4bEndpoint.ps1 -RepositoryCredential (Get-Credential) -AdditionalFeatures @{ useBackgroundService = 'Disabled'; allowGlobalCOnfirmation = 'Enabled' }

Expand Down Expand Up @@ -93,7 +93,7 @@ Param(
[Hashtable]
$AdditionalConfiguration,

# Allows for the toggling of additonal features that is applied after the base configuration.
# Allows for the toggling of additional features that is applied after the base configuration.
# Can override base configuration with this parameter
[Parameter()]
[Hashtable]
Expand All @@ -104,12 +104,17 @@ Param(
[Hashtable[]]
$AdditionalPackages,

# Allows for the addition of alternative sources after the base conifguration has been applied.
# Allows for the addition of alternative sources after the base configuration has been applied.
# Can override base configuration with this parameter
[Parameter()]
[Hashtable[]]
$AdditionalSources,

# Allows for the skipping of ChocolateyGUI installation.
[Parameter()]
[Switch]
$SkipChocolateyGUI,

# If passed, downloads the certificate from the client server before initializing Chocolatey Agent
[Parameter()]
[Switch]
Expand Down
Loading