Different images

oliver's Avatar


30 Dec, 2017 10:13 PM


I am using AppVeyor for several PowerShell module repositories.
I would like to be able to test the code on different versions of powershell.

However all images I tried are on version 5.0.10586.117.
Is there a way to use other versions? 3.0? 4.0? 5.1? Or even Core (6.0)?


  1. Support Staff 1 Posted by Ilya Finkelshte... on 02 Jan, 2018 10:21 PM

    Ilya Finkelshteyn's Avatar

    Hi Oliver,

    Right now all our build worker images have PowerShell version 2 and 5 installed. This is default setting for Windows Server 2012 R2 and Windows Server 2016.

    If you have a idea how to install another versions of PowerShell on any of those OS (at least manually), we can help you with scripting it and running it at install stage of different jobs in build matrix.

    However if it requires different OS (like "Default Windows Servers" in this article), then your best bet would be running your own custom images with private build cloud. However this feature is available for Premium plan customers. We provide 50% discount for open source and trial is free.


  2. 2 Posted by oliver on 03 Jan, 2018 11:06 AM

    oliver's Avatar

    Thanks for the reply.

    If I install PowerShell Core (v6) during the install stage, it will not take over the - ps: blocks, right? (as the exe name is different)
    I would have to - cmd: pwsh -File foo.ps1, correct?

  3. Support Staff 3 Posted by Ilya Finkelshte... on 04 Jan, 2018 01:10 AM

    Ilya Finkelshteyn's Avatar

    Correct, please check this sample and this build. I have to admin that this is not exactly the best experiences -- we are thinking about better PowerShell Core support.

  4. 4 Posted by oliver on 07 Jan, 2018 06:13 PM

    oliver's Avatar

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac