PSVirtualDesktop
PSVirtualDesktop copied to clipboard
WARNING: Some commands use unapproved verbs
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
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