Start-Job Problems

Posted by laerte-junior on Stack Overflow See other posts from Stack Overflow or by laerte-junior
Published on 2010-05-29T03:46:21Z Indexed on 2010/05/29 3:52 UTC
Read the original article Hit count: 357

Filed under:

Hi all,

Why this code not works ?

  function teste 
{
 begin
 {
  function lala {
   while ($true){
    "JJJJ" | Out-File c:\Testes\teste.txt -Append
   }

  }
 }
 process {
   Start-Job -ScriptBlock {lala} 

   }

}

© Stack Overflow or respective owner

Related posts about powershell-v2.0