Solved

Have to find and remove unapproved verbs?

Posted on 2016-09-13
4
29 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 500 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 500 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

Are You Headed to Black Hat USA 2017?

Getting ready for Black Hat next week? Kick things off with the WatchGuard Badge Challenge and test your puzzle and cipher skills. Do you have what it takes to earn our limited edition Firebox Badge? Get started today - https://crimsonthorn.net

Question has a verified solution.

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

A brief introduction to what I consider to be the best editor for PowerShell.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

623 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