Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14097

"Invoke-Command" in powershell script doesn't work when invoke it from bamboo task only

    • Icon: Bug Bug
    • Resolution: Low Engagement
    • Icon: Low Low
    • None
    • None
    • Windows

      See more details there
      https://answers.atlassian.com/questions/239823/invoke-command-in-powershell-script-doesn-t-work-when-invoke-it-from-bamboo-task-only

      Steps to reproduce

      Create Script task with PowerShell interpreter

      $session = New-PSSession
      Invoke-Command -Session $session -ScriptBlock {
          Start-Process "calc.exe"
      }
      

      Start agent on windows host under Administrative account
      Add requirement to created plan to be sure it's executed at started Windows agent
      Start plan

      Expected: calculator window
      Actual: nothing happened

              Unassigned Unassigned
              11ce614cbefc Andrey AndreySh
              Affected customers:
              8 This affects my team
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: