mbegan / Okta-PSModule

Okta API Powershell Wrapper Module
Other
102 stars 31 forks source link

How to get rid of Verbose messages when using the Okta cmdlets #16

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi, Can you please advise how do I get rid of the VERBOSE messages when using the cmdlets ? I have tried using "-Verbose:$false" and " $VerbosePreference = "continue" but had no success in suppressing the VERBOSE messages like these:

VERBOSE: GET https://xxxx.okta.com/api/v1/users/XXXXXXXX/groups with 0-byte payload VERBOSE: received -1-byte response of content type application/json;charset=UTF-8

mbegan commented 6 years ago

Modify the Okta_org.ps1 file

<# Okta_org.ps1 #>
# Verbose will print various informative messages
[Boolean]$oktaVerbose = $false

or issue this command from the powershell prompt

$oktaVerbose = $false
ghost commented 6 years ago

Thanks for the quick response.