Automation

 View Only
  • 1.  Turn off the connection details when connect to vi server

    Posted Jan 13, 2014 08:23 PM

    Hi, i am trying to remember how i did this, i am trying to make it so that when you run connect-VIsever it doesn't display the name, port or user.

    Thanks



  • 2.  RE: Turn off the connection details when connect to vi server

    Posted Jan 13, 2014 08:57 PM

    You can redirect the error and warning streams of the cmdlet, something like this

    Connect-VIServer -Server lalala 2> $null 3> $null

    Update: you can find a good overview of the PowerShell streams here.