Powershell 2.0 : issue import-Module in a background job
        Posted  
        
            by Sobled
        on Server Fault
        
        See other posts from Server Fault
        
            or by Sobled
        
        
        
        Published on 2010-01-21T10:45:58Z
        Indexed on 
            2010/03/31
            13:03 UTC
        
        
        Read the original article
        Hit count: 437
        
powershell
|job
I launch a script in backgroung using Start-Job command.
In this script, I load a module using Import-Module. The job stay blocked in the running state at the Import-Module step.
The same behaviour occurs when : - dotsourcing a module - loading the module via -InitializationScript Start-Job command.
Thanks in advance for your help
© Server Fault or respective owner