Closed dmoroney closed 11 months ago
This is not a bug, rather by design. If you do not want a message to be displayed, use the Set-OVLoginMessage
to clear the value.
The interactive message makes sense. Unauthorized changing of the banner is a violation of company policy. The current work with HPEOneView.830 is to build a process that will perform automated tasks. I'll have to see how things work when I add the discovery tool as a scheduled command. If there's a workaround to redirect this output, then that would be okay.
The message isn't put into the pipeline, so you should not have any issues with automating pipeline processing when the login message is presented.
I found the workaround to suppress the output from write-host in the .psm1.
./something.ps1 6> $null | put output into the pipeline
Sure, but keep in mind that the text is for display only. It is not passed to the pipeline, so it will not cause an issue with anyone trying to process output.
Expected Behavior
There doesn't seem to be a way to turn off the Terms of Use banner. Is there a parameter or workaround for turning off or redirecting that output?
Actual Behavior
Use...requires prior authorization...
Steps to reproduce
Version Information