Workflow and PSDrive conflict

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 3 months ago.

  • Author
    Posts
  • #6137

    by stahler at 2012-11-13 11:47:07

    Wanted to spread the word about a nasty little bug that comes up when you try to use workflow and you have a custom PSDrive in your profile.
    https://connect.microsoft.com/PowerShell/feedback/details/766279/workflow-invalid-operation-resetrunspacestate

    I submitted this on Microsoft Connect a few weeks ago, it took me a while to troubleshoot this one.

    by coderaven at 2012-11-13 12:38:08

    Thanks for the heads up!

    Keep in mind there are 2 workarounds

    [quote]Posted by fatbeard on 10/5/2012 at 5:47 AM
    You can get around the error by either starting PowerShell with -NoProfile or commenting out New-PSDrive in the profile.
    Posted by Jeffery Hicks on 10/31/2012 at 6:09 AM
    As long as you run the workflow from a standard drive, like C:, it will run.[/quote]

You must be logged in to reply to this topic.