Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Windows Extension Using Different Version of Powershell

    Scheduled Pinned Locked Moved Support
    buildmasterpowershellwindows
    3 Posts 1 Posters 3 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I'm using the Windows extension to execute a Powershell script on a deployment.

      The machine is a Windows Server 2008 R2 SP1 machine that had Powershell 2.0 installed by default. Our team needs to utilize a Cmdlet that's only available in Powershell 3.0, so I upgraded Powershell on the machine via Windows Update, but now Buildmaster still indicates that it's still using Powershell 2.0 when I print $PSVersionTable.PSVersion out to the console.

      When I open a Powershell window outside of BuildMaster, it correctly returns that it's using 3.0.

      Is this a known issue, or is there some configuration setting that I am missing that sets what version of Powershell is used by the extension?

      Thanks in advance.

      Product: BuildMaster
      Version: 4.8.6

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Strange - usually we have problems with the version of PowerShell being higher than desired. Have you tried rebooting the server? Sometimes certain system defaults like that don't take effect everywhere until after a reboot.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Thank you. That was the solution. I had already rebooted once, because the Windows Powershell update required it.

          I rebooted the machine again and now BuildMaster is reporting the correct version.

          Thanks again.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation