Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:12:44+00:00 2026-05-16T00:12:44+00:00

I want to parallelize some file-parsing actions with network activity in powershell. Quick google

  • 0

I want to parallelize some file-parsing actions with network activity in powershell. Quick google for it,
start-thread looked like a solution, but:

The term ‘start-thread’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

The same thing happened when I tried start-job.

I also tried fiddling around with System.Threading.Thread

[System.Reflection.Assembly]::LoadWithPartialName("System.Threading")
#This next errors, something about the arguments I can't figure out from the documentation of .NET
$tstart = new-object System.Threading.ThreadStart({DoSomething}) 
$thread = new-object System.Threading.Thread($tstart) 
$thread.Start()

So, I think the best would be to know what I do wrong when I use start-thread, because it seems to work for other people. I use v2.0 and I don’t need downward compatibility.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:12:45+00:00Added an answer on May 16, 2026 at 12:12 am

    Powershell does not have a built-in command named Start-Thread.

    V2.0 does, however, have PowerShell jobs, which can run in the background, and can be considered the equivalent of a thread. You have the following commands at your disposal for working with jobs:

    Name                              Category  Synopsis
    ----                              --------  --------
    Start-Job                         Cmdlet    Starts a Windows PowerShell background job.
    Get-Job                           Cmdlet    Gets Windows PowerShell background jobs that are running in the current ...
    Receive-Job                       Cmdlet    Gets the results of the Windows PowerShell background jobs in the curren...
    Stop-Job                          Cmdlet    Stops a Windows PowerShell background job.
    Wait-Job                          Cmdlet    Suppresses the command prompt until one or all of the Windows PowerShell...
    Remove-Job                        Cmdlet    Deletes a Windows PowerShell background job.
    

    Here is an example on how to work with it. To start a job, use start-job and pass a script block which contains the code you want run asynchronously:

    $job  = start-job { get-childitem . -recurse }
    

    This command will start a job, that gets all children under the current directory recursively, and you will be returned to the command line immediately.

    You can examine the $job variable to see if the job has finished, etc. If you want to wait for a job to finish, use:

    wait-job $job
    

    Finally, to receive the results from a job, use:

    receive-job $job
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey there, I have a mex file which I want to parallelize with the
I have the following nested for loops. I want to parallelize the first loop
I create a QFuture that I want to use to parallelize calls to a
want to open pdf file when a user clicks on hyperlink shown in gridview
want to know why String behaves like value type while using ==. String s1
Following to this post , I want parallelize this method : public IEnumerable<string> GetAllLogs(IEnumerable<IComputer>
Want make a mind map like the following: Image link is not available anymore.
Want to attach an Event Handler/Listener to some links using the delegate() method, but
I want to parallelize a function using IPython.parallel, and when I define it in
I want to use MPI to parallelize a function that is being called multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.