Reply to Message

View discussion in a popup

Replying to:
mark_chuman
Hot Shot
Hot Shot

example

PowerCLI C:\Scripts\vCenter\migration> foreach ($vmhost in $CSVhosts) {remove-vmhost -VMhost $vmhost.name -confirm:$fals

e -RunAsync}

Remove-VMHost : A parameter cannot be found that matches parameter name 'RunAsync'.

At line:1 char:84

+ ... confirm:$false -RunAsync}

+                    ~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Remove-VMHost], ParameterBindingException

    + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.RemoveVMHost

Reply
0 Kudos