PSVirtualDesktop icon indicating copy to clipboard operation
PSVirtualDesktop copied to clipboard

WARNING: Some commands use unapproved verbs

Open Morten-Loberg opened this issue 1 year ago • 1 comments

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

Morten-Loberg avatar Nov 02 '24 10:11 Morten-Loberg