Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Set-TaskbarOptions -AlwaysShowIconsOn cannot be used with other options #424

Closed
ravage84 opened this issue Feb 26, 2020 · 3 comments · Fixed by #425
Closed

Document Set-TaskbarOptions -AlwaysShowIconsOn cannot be used with other options #424

ravage84 opened this issue Feb 26, 2020 · 3 comments · Fixed by #425
Labels
5 - Released The issue has been resolved, and released to the public for consumption Documentation Issues for changes that only need to change documentation
Milestone

Comments

@ravage84
Copy link

Boxstarter 2.12.0
Windows 10 Version 1909

Executing

Set-TaskbarOptions -Size Small -Lock -Dock Top -Combine Always -AlwaysShowIconsOn

as documented on https://boxstarter.org/WinConfig results in:

PS C:\Users\Admin> Set-TaskbarOptions -Size Small -Lock -Dock Top -Combine Always -AlwaysShowIconsOn
Set-TaskbarOptions : Der Parametersatz kann mit den angegebenen benannten Parametern nicht aufgelöst werden.
In Zeile:1 Zeichen:1
+ Set-TaskbarOptions -Size Small -Lock -Dock Top -Combine Always -Alway ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-TaskbarOptions], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Set-TaskbarOptions

Same goes for :

Set-TaskbarOptions -AlwaysShowIconsOn -Lock -Size Large -Dock Bottom -Combine Always

But executing the following works:

Set-TaskbarOptions -AlwaysShowIconsOn

Related code:
https://github.com/chocolatey/boxstarter/blob/v2.12.0/Boxstarter.WinConfig/Set-TaskbarOptions.ps1#L34-L35

@gep13
Copy link
Member

gep13 commented Feb 26, 2020

@ravage84 can you help by providing an English translation for the exception? Thanks

@ravage84
Copy link
Author

Der Parametersatz kann mit den angegebenen benannten Parametern nicht aufgelöst werden.
In Zeile:1 Zeichen:1

My self-translation:

The parameter set cannot be resolved with the named parameters provided.
On Line: 1, Character: 1

@pauby pauby added the 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue label Feb 28, 2020
@pauby
Copy link
Member

pauby commented Feb 28, 2020

That's a bug on the site. Thanks for picking that up. The -Lock parameter cannot be used with -AlwaysShowIconsOn:

NAME
    Set-TaskbarOptions

SYNOPSIS
    Sets options for the Windows Task Bar


SYNTAX
    Set-TaskbarOptions [-UnLock] [-Size <Object>] [-Dock <Object>] [-Combine <Object>] [<CommonParameters>]

    Set-TaskbarOptions [-Lock] [-Size <Object>] [-Dock <Object>] [-Combine <Object>] [<CommonParameters>]

    Set-TaskbarOptions [-AlwaysShowIconsOn] [-Size <Object>] [-Dock <Object>] [-Combine <Object>] [<CommonParameters>]  
    Set-TaskbarOptions [-AlwaysShowIconsOff] [-Size <Object>] [-Dock <Object>] [-Combine <Object>] [<CommonParameters>] 

@pauby pauby added 0 - Backlog Issue is accepted, but is not ready to be worked on or not in current sprint Documentation Issues for changes that only need to change documentation and removed 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue labels Feb 28, 2020
@pauby pauby added this to the 2.14.0 milestone Feb 28, 2020
@gep13 gep13 closed this as completed in #425 Mar 5, 2020
gep13 added a commit that referenced this issue Mar 5, 2020
(GH-424) Fix Set-TaskBarOptions function doc
@gep13 gep13 added 4 - Done Code has been added to the repository, and has been reviewed by a team member and removed 0 - Backlog Issue is accepted, but is not ready to be worked on or not in current sprint labels Mar 5, 2020
@gep13 gep13 modified the milestones: v2.14.0, v2.13.0 Oct 15, 2020
@pauby pauby changed the title Set-TaskbarOptions option -AlwaysShowIconsOn cannot be used with others Document Set-TaskbarOptions -AlwaysShowIconsOn cannot be used with other options Oct 19, 2020
@pauby pauby added 5 - Released The issue has been resolved, and released to the public for consumption and removed 4 - Done Code has been added to the repository, and has been reviewed by a team member labels Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Released The issue has been resolved, and released to the public for consumption Documentation Issues for changes that only need to change documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants