Skip to content

Conversation

@matt9ucci
Copy link
Contributor

The AutoRemoveJob parameter cannot be used without the Wait parameter. See the following example:

PS> Receive-Job (Start-Job -ScriptBlock { Get-Process }) -AutoRemoveJob
Receive-Job : The -AutoRemoveJob parameter cannot be used without the -Wait parameter
At line:1 char:1
+ Receive-Job (Start-Job -ScriptBlock { Get-Process }) -AutoRemoveJob
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Receive-Job], PSInvalidOperationException
    + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.ReceiveJobCommand

Version(s) of document impacted

  • Impacts 6.0 document
  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document

@zjalexander
Copy link
Contributor

✅ Validation status: passed

File Status Preview URL Details
reference/3.0/Microsoft.PowerShell.Core/Receive-Job.md ✅Succeeded
reference/4.0/Microsoft.PowerShell.Core/Receive-Job.md ✅Succeeded
reference/5.0/Microsoft.PowerShell.Core/Receive-Job.md ✅Succeeded
reference/5.1/Microsoft.PowerShell.Core/Receive-Job.md ✅Succeeded
reference/6/Microsoft.PowerShell.Core/Receive-Job.md ✅Succeeded

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@sdwheeler sdwheeler merged commit 4feb496 into MicrosoftDocs:staging Apr 9, 2018
@matt9ucci matt9ucci deleted the patch-rcjb-AutoRemoveJob branch April 10, 2018 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants