Issue parsing powershell output

vdeshpande
Kilo Explorer

I am working on a Exchange integration using Orchestration. we have a custom powershell script

Output is showing as below

WARNING: The names of some imported commands from the module 'Exchange' 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.

Deshpande, Amruta

1.   - How do I get rid of the WARNING message

2. How do I parse only last line ignoring warning message

Thank you

1 ACCEPTED SOLUTION

Hi Varsha,


If you are importing exchange module, then your synyax would be


import-module -moduleName           - DisableNameChecking


View solution in original post

6 REPLIES 6

This worked Deepak , thanks a lot !!


staceyrocheleau
Kilo Guru

Since you're using exchange, are you setting up a pssession?



This link might be useful to you in where to set the flag:


powershell - Suppress output from Import-PSSession - Stack Overflow