2 Replies Latest reply on May 31, 2019 1:31 PM by COS

    -Confirm;$false still prompts for user interaction

    COS Master

      I run the below....

       

      Get-VM -Name "sql2017-test" | Set-VM -DrsAutomationLevel Manual -Confirm;$false

       

      But it still prompts me with this...

       

      I tried this...

      Get-VM -Name "ps-laoyang" | Set-VM -DrsAutomationLevel Manual -Confirm;$false | Out-Null

       

      same thing.

       

      What am I doing wrong.........lol.