Skip to content

Rationale behind PowerShellNotAvailable Exception? #81

@lup1

Description

@lup1

I am trying to work with the PowerShell.java code, and I kept getting the PowerShellNotAvailable exception. I found that removing the p.waitfor(5,TimeUnit.SECONDS) part of the if statement and the interrupted exception made the errors go away, but my powershell script did not seem to run.
Could you explain why p.waitfor(5,TimeUnit.SECONDS) being true would mean that PowerShell is not running/available to run?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions