Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 233130

Re: PowerCLI: Exception calling "CreateCollectorForTasks" with "1" argument(s): "The operation is not allowed in the current state."

$
0
0

Try restting the $creator variable at the start of each snapshot loop.

...
foreach ($vm in $myVMs) {
$snapshots = Get-Snapshot -VM $vm
    foreach ($snapShot in $snapShots){
        $creator = ""
        $VM = $snapShot.VM
        ...

Viewing all articles
Browse latest Browse all 233130

Trending Articles