Workflow and PSDrive conflict

Welcome Forums General PowerShell Q&A Workflow and PSDrive conflict

Viewing 0 reply threads
  • Author
    Posts
    • #6137
      Participant
      Topics: 1562
      Replies: 0
      Points: 1
      Rank: Member

      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

      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.

Viewing 0 reply threads
  • The topic ‘Workflow and PSDrive conflict’ is closed to new replies.