Hi,
The -AsJob
parameter is not available for the Test-Connection cmdelt in PowerShell Core 7. You can create a background job using Start-Job.
Start-Job -Name job1 -ScriptBlock {Test-Connection google.com -Count 10}
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.