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

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 228891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>