Hi,
When I am executing the following command, the -As job is not working in Powershell Core 7.0
Similarly Get-Job | Receive-Job also does not respond.
Test-Connection google.com -count 10 -AsJob
Kindly advise
Manish
Hi,
When I am executing the following command, the -As job is not working in Powershell Core 7.0
Similarly Get-Job | Receive-Job also does not respond.
Test-Connection google.com -count 10 -AsJob
Kindly advise
Manish
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.
How to get the result as to what was the TTL etc..
Because If I run get-job it shows me details but nothing w.r.t succeeded, what ttl it was etc...
11 people are following this question.