Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Have to find and remove unapproved verbs?

Posted on 2016-09-13
4
Medium Priority
?
63 Views
Last Modified: 2016-11-01
I see numerous post on Internet about this error?  Some suggest you can suppress error, others say you should remove unapproved verbs?  I don't understand what module 'tmp_mplgxqob.2t1' refers to  (name may vary)?  Is that referring to the script base itself -- I don't have any custom modules.  Also, how does one find unapproved verbs?

Thanks
WARNING: Your connection has been redirected to the following URI:
"https://ps.outlook.com/PowerShell-LiveID?PSVersion=3.0 "
WARNING: The names of some imported commands from the module 'tmp_mplgxqob.2t1' 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.
0
Comment
Question by:apsutechteam
  • 3
4 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points (awarded by participants)
ID: 41796184
Just ignore this; it's a warning, nothing more. In this case, you obviously won't be able to to change the unapproved verbs.
This rule is relevant if you develop your own modules, in which case you should indeed stick to the verbs you get from Get-Verb.
The rule only applies to mere mortals, Microsoft developers (as you may have noticed) don't seem to be bound by formalities like this. The Exchange management module gives the same warning. Or just have a look at one of the base PS tools: Sort-Object. "Sort" is not an approved verb ...
0
 

Author Comment

by:apsutechteam
ID: 41816888
What does script module refer to?
0
 
LVL 85

Assisted Solution

by:oBdA
oBdA earned 2000 total points (awarded by participants)
ID: 41837845
It's a temporary module that gets created, for example, when using Import-Session.
If the warning is actually from Import-Session (no idea, since you didn't provide any context at all), you can add the --DisableNameChecking switch to suppress it.
0
 
LVL 85

Expert Comment

by:oBdA
ID: 41868045
Question answered
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦
Screencast - Getting to Know the Pipeline

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question