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

WARNING: Some commands use unapproved verbs #47

Open
Morten-Loberg opened this issue Nov 2, 2024 · 1 comment
Open

WARNING: Some commands use unapproved verbs #47

Morten-Loberg opened this issue Nov 2, 2024 · 1 comment

Comments

@Morten-Loberg
Copy link

First of all I want to underline my appreciation that you have developed this set of commands. Microsoft should have included these commandlets built-in.

I guess you already know this, but when importing the module, the following warning appears:

WARNING: The names of some imported commands from the module 'VirtualDesktop' include unapproved 
verbs that might make them less discoverable. To find the commands with unapproved verbs, run the    
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. 

The reason is that the verbs "Pin" and "Unpin" are not on the list of approved verbs (try Get-Verb), affecting the following commands:

  • Pin-Application
  • Pin-Window
  • Unpin-Application
  • Unpin-Window

It is just a suggestion of course, but what about renaming these using the verbs "Enable" and "Disable" instead, for instance as follows?

  • Enable-ApplicationOnAllDesktops
  • Enable-WindowOnAllDesktops
  • Disable-ApplicationOnAllDesktops
  • Disable-WindowOnAllDesktops
@MScholtes
Copy link
Owner

MScholtes commented Nov 9, 2024

Hello @Morten-Loberg,

some time ago I was faced with the question of how to deal with the fact that Microsoft does not allow the verb ‘Pin’ and ‘Unpin’: either accept a warning or use a word monster. I decided in favour of the former.
If one or the other, like you, thinks that this was a wrong decision, then post this here and I'll change the names.

(by the way, you might use Import-Module -DisableNameChecking to suppress the warnings)

Greetings

Markus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants