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?
You forgot the dash (-) in front of Confirm
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You forgot the dash (-) in front of Confirm
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference