VMware Cloud Community
m_pahlevanzadeh
Enthusiast
Enthusiast
Jump to solution

Remove-NetworkAdapter doesn't accept to run batch mode

I need to run Remove-NetworkAdapter as:

Remove-NetworkAdapter -Network-Adapter $nic[2] Confirm:$false

 

But PwerShell cann't accept Confirm, How can I tell to Remove-NetworkAdapter don't ask me when to remove adapter?

 

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You forgot the dash (-) in front of Confirm


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

1 Reply
LucD
Leadership
Leadership
Jump to solution

You forgot the dash (-) in front of Confirm


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference