< Back
Add-ChocoSource
Post
NAME Add-ChocoSource
SYNOPSIS
Adds a new source to chocolatey
SYNTAX
Add-ChocoSource [-Name] <String> [-Source] <String> [[-AllowSelfService]] [[-BypassProxy]] [[-AdminOnly]]
[[-Priority] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Add-ChocoSource [-Username] <String> [-Password] <String> [[-AllowSelfService]] [[-BypassProxy]] [[-AdminOnly]]
[[-Priority] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Add-ChocoSource [-Certificate] <String> [-CertificatePassword] <String> [[-AllowSelfService]] [[-BypassProxy]]
[[-AdminOnly]] [[-Priority] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Adds a new source with the given name and settings to chocolatey
PARAMETERS
-Name <String>
The friendly name of the source
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Source <String>
The URL or filepath of the source
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Username <String>
The username used to authenticate to the source
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <String>
The password used to authenticate to the source
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Certificate <String>
The path to the certificate to use with the source if required
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CertificatePassword <String>
The certificate's private key
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AllowSelfService [<SwitchParameter>]
Enable self-service mode for the source
Required? false
Position? 7
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-BypassProxy [<SwitchParameter>]
Bypass any proxy configuration for the specified source
Required? false
Position? 8
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-AdminOnly [<SwitchParameter>]
Allow only local administrator group members to use the specified source
Required? false
Position? 9
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Priority <Int32>
The priority to give to the specified source
Required? false
Position? 10
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
General notes
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-ChocoSource -Name bob -s https://reposserver/repository/choco
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-ChocoSource -Name bob -s \\\\fileserver\\chocopackages
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Add-ChocoSource -Name bill -s https://repositoryserver/repository/choco -Username frank -Password frank1234
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Add-ChocoSource -Name bob -s https://repositoryserver/repository/choco -AllowSelfService
RELATED LINKS
SYNOPSIS
Adds a new source to chocolatey
SYNTAX
Add-ChocoSource [-Name] <String> [-Source] <String> [[-AllowSelfService]] [[-BypassProxy]] [[-AdminOnly]]
[[-Priority] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Add-ChocoSource [-Username] <String> [-Password] <String> [[-AllowSelfService]] [[-BypassProxy]] [[-AdminOnly]]
[[-Priority] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Add-ChocoSource [-Certificate] <String> [-CertificatePassword] <String> [[-AllowSelfService]] [[-BypassProxy]]
[[-AdminOnly]] [[-Priority] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Adds a new source with the given name and settings to chocolatey
PARAMETERS
-Name <String>
The friendly name of the source
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Source <String>
The URL or filepath of the source
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Username <String>
The username used to authenticate to the source
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <String>
The password used to authenticate to the source
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Certificate <String>
The path to the certificate to use with the source if required
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CertificatePassword <String>
The certificate's private key
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AllowSelfService [<SwitchParameter>]
Enable self-service mode for the source
Required? false
Position? 7
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-BypassProxy [<SwitchParameter>]
Bypass any proxy configuration for the specified source
Required? false
Position? 8
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-AdminOnly [<SwitchParameter>]
Allow only local administrator group members to use the specified source
Required? false
Position? 9
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Priority <Int32>
The priority to give to the specified source
Required? false
Position? 10
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
General notes
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-ChocoSource -Name bob -s https://reposserver/repository/choco
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-ChocoSource -Name bob -s \\\\fileserver\\chocopackages
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Add-ChocoSource -Name bill -s https://repositoryserver/repository/choco -Username frank -Password frank1234
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Add-ChocoSource -Name bob -s https://repositoryserver/repository/choco -AllowSelfService
RELATED LINKS