Skip to content

Return execution control back to the next statement. #4

@eliassal

Description

@eliassal

Josh, I am wondering if we can give back control to the execution environment when a PS statement is executed before it finishes.
I have a script that uses Export-VM as follows
Export-VM -NameDC1 -path \BackupServer\myBackups\cogRetour\VMs
Export-VM -NameDC2 -path \BackupServer\myBackups\cogRetour\VMs
and so on
The 2nd statement waits until the 1st finishes, I am trying to find a solution where statements are fired one after the other so I can run several exports in parallel? Is it feasible in powershell?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions