I need to run Remove-NetworkAdapter as:
Remove-NetworkAdapter -Network-Adapter $nic Confirm:$false
But PwerShell cann't accept Confirm, How can I tell to Remove-NetworkAdapter don't ask me when to remove adapter?
You forgot the dash (-) in front of Confirm
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
View solution in original post