-
Notifications
You must be signed in to change notification settings - Fork 15
Get‑ChocolateyCommand
dscbot edited this page Oct 23, 2025
·
1 revision
Get the Chocolatey command executable.
Get-ChocolateyCommand [[-InstallDir] <String>] [-Force]
[<CommonParameters>]
This function retrieves the path to the Chocolatey command executable (choco.exe).
Get-ChocolateyCommand -InstallDir 'C:\ProgramData\chocolatey' -Force
Whether to force re-evaluation of the Chocolatey command path.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseThe installation directory of Chocolatey.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Add-ChocolateyPin
- Compare-ChocolateyPackage
- Disable-ChocolateyFeature
- Disable-ChocolateySource
- Enable-ChocolateyFeature
- Enable-ChocolateySource
- Find-ChocolateyPackage
- Get-ChocolateyCommand
- Get-ChocolateyFeature
- Get-ChocolateyPackage
- Get-ChocolateyPin
- Get-ChocolateySetting
- Get-ChocolateySource
- Get-ChocolateyVersion
- Install-ChocolateyPackage
- Install-ChocolateySoftware
- Register-ChocolateySource
- Remove-ChocolateyPin
- Set-ChocolateySetting
- Test-ChocolateyFeature
- Test-ChocolateyInstall
- Test-ChocolateyPin
- Test-ChocolateySetting
- Test-ChocolateySource
- Uninstall-Chocolatey
- Uninstall-ChocolateyPackage
- Unregister-ChocolateySource
- Update-ChocolateyPackage