locked
-WhatIf No Output RRS feed

  • Question

  • Hi,

    Is it possible to stop -WhatIf output? "<cmdlet> -WhatIf | Out-Null" doesn't work.

    I am providing my own logging so I don't also need it from -WhatIf

    Thanks

    Thursday, December 19, 2019 6:51 PM

Answers

All replies

  • Don't use WhatIf or turn it off by setting it to false.


    \_(ツ)_/

    Thursday, December 19, 2019 6:57 PM
  • Thanks.
    Thursday, December 19, 2019 7:57 PM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, December 26, 2019 8:33 AM