Quantcast
Channel: Rob V IT
Viewing all articles
Browse latest Browse all 64

WARNING: The names of some imported commands from the module “” include unapproved verbs that might make them less discoverable.

$
0
0

When you use one of the VERB types in your brand new function names, you get the following very annoying message:

WARNING: The names of some imported commands from the module ‘Set-ROBVIT-Function’ 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.

In this case “set” is our problem.
Tried to do with the -WarningAction:SilentlyContinue, -ErrorAction:SilentlyContinue, out-null parameters with no succes.
It costs me 5 Google’s to find the solution, thats why i created this little reminder to myself :).

How to solve the issue?

Fist option:
You can make some PowerShell module / function config files, with export functions etc.
To much work for my little function.

Second option (the easy one):
Just import the module with the -DisableNameChecking parameter.

Import-module Set-ROBVIT-Function -DisableNameChecking

If you have a better solution, dont hesitate to comment below.

The post WARNING: The names of some imported commands from the module “” include unapproved verbs that might make them less discoverable. appeared first on Rob V IT.


Viewing all articles
Browse latest Browse all 64

Trending Articles