VMware Cloud Community
COS
Expert
Expert
Jump to solution

-Confirm;$false still prompts for user interaction

I run the below....

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

But it still prompts me with this...

pastedImage_0.png

I tried this...

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

same thing.

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

0 Kudos
1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

Please replace the semi-colon with a colon, i.e. -Confirm:$false


André

View solution in original post

0 Kudos
2 Replies
a_p_
Leadership
Leadership
Jump to solution

Please replace the semi-colon with a colon, i.e. -Confirm:$false


André

0 Kudos
COS
Expert
Expert
Jump to solution

lol, that worked.

Rookie move on my part.

¯\_(ツ)_/¯

0 Kudos