Solved

Have to find and remove unapproved verbs?

Posted on 2016-09-13
4
23 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 84

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 84

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 84

Expert Comment

by:oBdA
ID: 41868045
Question answered
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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